[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] position last and attributes

Subject: Re: [xsl] position last and attributes
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 20 Sep 2012 11:47:50 +0100

On 20/09/2012 07:13, Ihe Onwuka wrote:
It would seem (somewhat paradoxically) that given the definition of
position() and last() they could be applied to @* which is
intrinsically unordered.

Actually, there is a total ordering relation (document order) over all nodes. It's just that for two attributes of the same element (and indeed, say, for two elements in different documents) the ordering relation is implementation-dependent. So it's not correct to say that they are "intrinsically unordered". They are ordered, but not in a predictable way.

Michael Kay

Current Thread