RE: [xsl] ancestor axis ordering (again...)

Subject: RE: [xsl] ancestor axis ordering (again...)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 27 Feb 2006 13:49:09 -0000
> why?

This is one of the more obscure aspects of the XPath specification.

All path expressions deliver their results in document order. But for the
purpose of computing the value of position() within a predicate attached to
an axis step, the nodes are considered to be numbered in "axis order", which
for the ancestor axis is reverse document order.

Michael Kay

Current Thread