This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@epistemics.co.uk



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]