RE: Clarification on node-set definition

Subject: RE: Clarification on node-set definition
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 27 Nov 2000 10:19:58 -0000
> The XPath spec defines a node-set as:-
> 
> - an unordered collection of nodes without duplicates.
> 
> "Unordered" here basically means it hasn't been sorted on any
> properties of each node in the set. Is it correct to say that it is
> returned in document/sourcetree order ?

A node-set has no intrinsic order, but many of the operations on node-sets
are defined to handle the nodes in document order: e.g. xsl:for-each and
xsl:apply-templates, and conversion to a string (which takes the
string-value of the first node in document order).

Mike Kay


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


Current Thread