This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSL namespace
- To: pmahon at eircell dot ie
- Subject: Re: XSL namespace
- From: Jeni Tennison <jeni dot tennison at epistemics dot co dot uk>
- Date: Fri, 11 Aug 2000 16:58:26 +0100
- Cc: xsl-list at mulberrytech dot com
- Reply-To: xsl-list at mulberrytech dot com
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