XML technologies / XPath / XPath 2.0: language reference / Path expressions: axes / Following-sibling 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: forward
Axis identifier: following-sibling
Abbreviated syntax: none

Figure: the following-sibling axis.
The following-sibling axis contains all children of the context node’s parent that follow the context node in document order. It can therefore contain only element, text, comment and processing-instruction nodes.
If the context node is the document node, this axis is empty.
The axis is also empty for an attribute context node: attributes are not children of their parent element and are considered unordered, so no unambiguous ordering exists between them, even if the serialized source suggests otherwise.
Example:
following-sibling::*
selects all element nodes, regardless of name, sharing the current node’s parent and following it in document order.
following-sibling::node()
selects all nodes, regardless of kind, following the current node at the same hierarchy level 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