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

RE: Version and output-version in XSLT 2.0

Subject: RE: Version and output-version in XSLT 2.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 13 Feb 2006 13:09:27 -0000
RE:  Version and output-version in XSLT 2.0
> Having introduced this new "version" attribute even makes it 
> necessary to
> introduce a new attribute, "output-version" to the 
> result-document element,
> meaning exactly the same as "version" in the output-element and even
> overridinging it!
> 
> Sorry but that is not how a new attribute should be 
> introduced! 

The XSLT 1.0 specification had (1) a version attribute on the xsl:stylesheet
element, (2) an xsl:version attribute on literal result elements, and (3) a
version attribute on the xsl:output element. The meaning of (3) was
unrelated to (1) and (2).

There were a number of other similar attributes that could appear either on
xsl:stylesheet or (with the xsl prefix) on literal result elements (for
example exclude-result-prefixes). We generalized all of these so that they
could appear on any element, mainly to allow them to be used at the level of
xsl:template or xsl:function. We weren't able to fully generalize the
version attribute in this way because of the clash with the existing
attribute on xsl:output, so we just made that an exception. Inelegant, but
not a real problem in practice, and any other solution would have been
equally messy.

Michael Kay
http://www.saxonica.com/

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.