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

Re: Nasty XPath expressions


complex xpath expression
On Thu, Dec 13, 2001 at 07:07:21AM -0800, Evan Lenz wrote:
>> XPath says that nodes should be returned in 'document order', which
>> becomes a non-trivial in the case of some expressions involving
>> the union operator.
>
>Actually, XPath nowhere says that nodes must be returned in document order.
>Node-sets are sets; they have no order. Whether you want to subsequently

Umm, no.

Node-sets are ordered sets.  The spec spends (too much?) time
discussing the ordering of returned sets, which depend upon the axis. 
So it isn't exactly true that they are always in document order
(particularly if you're using a complex expression that moves in
multiple axes), but it is true that the nodes are returned in the order
of encounter, as specified by the axis.  Typically, this means document
order.

They are *not* unordered sets.

Amy!
-- 
Amelia A. Lewis          alicorn@m...          amyzing@t...
But pain ... seems to me an insufficient reason not to embrace life.  Being
dead is quite painless.  Pain, like time, is going to come on regardless. 
Question is, what glorious moments can you win from life in addition to the
pain?						-- Cordelia Vorkosigan

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.