This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Can sets have order?


> Well, no. Two sections confuse me:
>
> 1: "An axis identifies an (ordered) list of nodes. The predicate
> associated with the axis is applied to the ordered list."
>
> I would have thought that the following would make more sense, because
> it seems wierd to throw away an ordering that is never seen:
>
> "An axis identifies an (ordered) list of nodes. The predicate
> associated with the axis is applied to the *unordered set*."

I'm not arguing about what "makes sense", I'm telling you what the XPath
spec says.

>
> "The node-set is unordered, but
>  the nodes have an ordering, called document order."
>
> It is confusing to say that node-sets are unordered, whilst nodes are.

I find it reasonable. If I have two sets {4, 6, 7} and {5, 6, 4} then 4<6 is
a property of the numbers 4 and 6, not a property of the set they happen to
be part of today.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]