Re: [xsl] Hello World

Subject: Re: [xsl] Hello World
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Jun 2002 19:49:58 +0100
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


Current Thread