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
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:
preceding::mein_element
selects all element nodes namedmein_elementthat precede the current node in document order.
preceding::comment()
selects all comment nodes preceding the current node in document order.
Copyright © Galileo Press, Bonn 2008
You may print the online version for private use.
Otherwise, this chapter from "XSLT 2.0 & XPath 2.0 ― Das umfassende Handbuch" is subject to the same terms as the bound edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn