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

Re: Xsl stylesheet version =1 with saxon 9.x

Subject: Re: Xsl stylesheet version =1 with saxon 9.x
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Mar 2019 16:33:54 -0000
Re:  Xsl stylesheet version =1 with saxon 9.x
> On 7 Mar 2019, at 16:27, Michael Kay mike@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> The effect of having version="1.0" is that the stylesheet runs in "backwards
compatibility mode", meaning that some constructs behave as described in XSLT
1.0 / XPath 1.0 rather than as defined in 2.0/3.0. For example, xsl:value-of
applied to a sequence of several nodes displays the first in 1.0 mode, but
throws an error in 2.0 / 3.0 mode.

Correction. xsl:value-of in 2.0 displays all the nodes. I was thinking of the
string() function: in 1.0 this displays the first node, while in 2.0 it throws
an error.

My memory of 1.0 is getting rusty - it's almost 20 years old, after all!

Michael Kay

Current Thread


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.
First Name
Last Name
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.