This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Hello World
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: Jeff Beadle <Jbeadle at manh dot com>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 19 Jun 2002 19:49:58 +0100
- Subject: Re: [xsl] Hello World
- Organization: Jeni Tennison Consulting Ltd
- References: <62E66E667580D61187160004762FCBFA0B34@MA-ATL81>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Jeff,
> [Jim Fuller said]
>>> A literal result element that is the document element of a stylesheet
>>> must have an xsl:version attribute,
>
> but element (the only element, therefore also the doc ele) is not
> defined as a stylesheet element its an "a" element that has an xslt
> 1.0 namespace declaration within its context ... but it doesn't
> belong to the namespace nor is it an xslt stylesheet element.
>
> So is the xslt version attribute declaration still needed?
Yes. In the examples, the document element (the only element) is a
literal result element (an element in a stylesheet that is not in the
XSLT namespace nor in an extension namespace and is therefore copied
over into the result as-is). So the stylesheet has a literal result
element as its document element (it's a simplified stylesheet). If you
look at http://www.w3.org/TR/xslt#result-element-stylesheet, just
after the code samples, it says:
A literal result element that is the document element of a
stylesheet must have an xsl:version attribute, which indicates the
version of XSLT that the stylesheet requires.
So here, the literal result element that is the document element of
the stylesheet must have an xsl:version attribute.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list