[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Nasty XPath expressions
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|