[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|