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

Re: position last and attributes

Subject: Re: position last and attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 20 Sep 2012 19:36:08 +0100
Re:  position last and attributes
On 20/09/2012 08:51, Ihe Onwuka wrote:
hey could be applied to @* which is
intrinsically unordered.


It is rather misleading to say that @* is intrinsically unordered.
In XPath 1, like all XPath operations it returns a node set and sets are unordered.


However Xpath2 it returns an ordered sequence of nodes in document order. This order is stable it returns the same order each time you query that node. It affects not just position() and last() but all xpath features such as << and >>.

It is not that @* is unordered it is just that that the order can not be determined by looking at the order of attributes in the markup, but the processor has to build an ordered sequence of attribute nodes in its XDM model so by the time the XSLT engine is evaluating @* it is just as ordered as a sequence of element nodes from *.


David


--
google plus: https:/profiles.google.com/d.p.carlisle

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.