xsl-list
[Top] [All Lists]

Re: [xsl] position last and attributes

2012-09-20 05:48:08

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
Saxonica

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--