Lists Home |
Date Index |
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
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
They are *not* unordered sets.
Amelia A. Lewis email@example.com firstname.lastname@example.org
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