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

Re: Quick Xpath


xpath reverse order
> On Thu, 2002-07-18 at 00:39, bob mcwhirter wrote:
> > > Finally a word to say that even though the preceding-sibling is a
> > > "reverse" axis, a copy-of or apply-templates on "preceding-sibling::*"
> > > would take the nodes by document order: the "reverse order" property
> > > only affects the position -as returned by the "position()" function- of
> > > the nodes, not their physical position in the node set...
> > 
> > Though, unless otherwise specified (ie, in c14n), a node set is indeed
> > a -set-, with no particular order implied.
> 
> Reminds me of long threads, elsewhere,... we could argue that node sets
> are not -sets- in the sense that they have an order: if I affect
> "preceding-sibling::*" to a variable "var", then I can ask for $var[1]
> which would have no meaning if this was a -set- and the order used to
> evaluate $var[1] is the forward order even though the node set has been
> constructed using an axis with a reverse order.

Oh dear, Eric.  You're in for it now  :-)

I fought this battle a year or two ago on xsl-list and lost it to David 
Carlisle.  Node sets do not have order.  The specs do *impose* an ordering on 
them in certain areas, but this is not the same thing as their *having* order. 
 Because of this, and because generate-id() grants them an identity, they are 
indeed true sets.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Track chair, XML/Web Services One Boston: http://www.xmlconference.com/
The many heads of XML modeling - http://adtmag.com/article.asp?id=6393
Will XML live up to its promise? - http://www-106.ibm.com/developerworks/xml/li
brary/x-think11.html



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.