[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL namespace
Paul, >I am using Instant SAXON and the error that I am getting is as follows: > >At xsl:stylesheet on line 2 of file:/C:/Program Files/saxon/technology.xsl: >Not >a stylesheet (the xsl namespace is not declared on the top-level element) > >My XSL is as follows: > ><?xml version="1.0"?> ><xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" xmlns=" >http://www.w3.org/TR/REC-html40"> > <xsl:template match="document"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head>xxxxx</head> > >Is there something that I am missing from the XSL declaration?? You are using the wrong namespace for XSLT; SAXON is looking for a stylesheet in the correct namespace - "http://www.w3.org/1999/XSL/Transform" - and when it doesn't find it, it thinks that the file isn't a stylesheet. If you change the xsl namespace, it should work. I hope that helps, Jeni Dr Jeni Tennison Epistemics Ltd, Strelley Hall, Nottingham, NG8 6PE Telephone 0115 9061301 ? Fax 0115 9061304 ? Email jeni.tennison@xxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|