[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Hello World

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.