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

Re: (Possible) pitfall: XSLT 2, 9.4 Creating implicit

Subject: Re: (Possible) pitfall: XSLT 2, 9.4 Creating implicit document nodes
From: Christian Roth <roth@xxxxxxxxxxxxxx>
Date: Thu, 10 May 2012 02:13:20 +0200
Re:  (Possible) pitfall: XSLT 2
On 09.05.2012, at 17:21, Jakub Mal} wrote:

> You can give assign a type to v1 (and v2 as well) to make both variables
> behave the same.

Declaring the type for the variable v1 is the key here, thank you! I somehow
must have missed the vital "... and that has no as attribute." part in 9.4.

After doing that, I just need to be aware that the elements in the sequence
are no longer accessed via (e.g.) $v1/a, but $v1/self::a, i.e. they are not

Thanks to all other respondents (Ken, David, Michael) for essentially pointing
out the same thing, but adding valuable additional perspectives to the issue.


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.