XML technologies / XPath / XPath 2.0: language reference / Path expressions: axes / Preceding axis

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, chapter 4.)

Defined for: XPath 1.0 and 2.0 (not in XQuery 1.0)

Direction: reverse

Axis identifier: preceding

Abbreviated syntax: none

The preceding axis

Figure: the preceding axis.

The preceding axis contains all nodes preceding the current node in document order. This also includes all nodes on the ancestor axis. Attribute and namespace nodes are not on the preceding axis, however.

Example:

   

back to top