XML information pipe

Ihre Spezialisten für XML

Banner Werbung

XSLT 2.0 reference

XSLT  |  axes

ancestor | ancestor-or-self | attribute | child | descendant | descendant-or-self | following | following-sibling | namespace | parent | preceding | preceding-sibling | self |


XSLT  |  axes


ancestor

It contains the ancestors of the context node (the parent, the parent of the parent, and so on). The ancestor axis includes the root node of the tree in which the context node is found, unless the context node is the root node.
This is a reverse axis. When using predicates with a sequence of nodes selected using a reverse axis, it is important to remember that the context positions for such a sequence are assigned in reverse document order.

Locate in the official documentation

XSLT 2.0 reference