This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Can sets have order?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Can sets have order?
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 25 Jan 2001 17:54:09 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Isn't it a bit confusing to say that it returns it in reverse document
> order? My understanding is that ancestor:: is ordered most immediate
> first i.e direct parent, then parent of parent and so on, all
> the way up to the root.
An axis identifies an (ordered) list of nodes. The predicate associated with
the axis is applied to the ordered list. The result of an XPath expression,
however, is always a node-set, not a list. The node-set is unordered, but
the nodes have an ordering, called document order. Many operations on
node-sets process the nodes in document order. Is that clear now?
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list