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

Re: Does this XSLT 2.0 stylesheet use any XSLT 2.0 fe

Subject: Re: Does this XSLT 2.0 stylesheet use any XSLT 2.0 features?
From: Jonathan Robie <jonathan.robie@xxxxxxxxxx>
Date: Fri, 26 Sep 2008 10:58:57 -0400
Re:  Does this XSLT 2.0 stylesheet use any XSLT 2.0  fe
David Carlisle wrote:
But my experience that it's quite esy to have documents that work in 1.0
but that generate an error in 2.0 (even if version="1.0") but that you
have to try quite hard to accidentally have a stylesheet that produces
non-error results that are necessarily different in version 1 and
version 2 (although it's easy to generate test examples where the
behaviour is different, just by looking at the appendix that lists the
limits of compatibility mode.)

The difference that is causing all the trouble seems to be the difference in path expressions like this:


<xsl:variable name="lang-id" select="/g:grammar/g:language/@id"/>

If there are two g:language elements, an XSLT 1.0 processor returns only one id attribute, and an XSLT 2.0 processor returns two. If the result is put into the output then you get funny results.

Unfortunately, this happens in at least several places in at least several stylesheets, and I doubt there's any easy way to automatically detect where the difference in behavior might cause different output for sample input or for input governed by a given schema.

Jonathan

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-2011 All Rights Reserved.