Axis |
Selects From |
ancestor |
the parent of the current node, the parent of the parent of the current node, the parent of the parent of the parent of the current node, and so forth back to the root node |
ancestor-or-self |
the ancestors of the current node and the current node itself |
attribute |
the attributes of the current node |
child |
the immediate children of the current node |
descendant |
the children of the current node, the children of the children of the current node, and so forth |
descendant-or-self |
the current node itself and its descendants |
following |
all nodes that start after the end of the current node, excluding attribute and namespace nodes |
following-sibling |
all nodes that start after the end of the current node and have the same parent as the current node |
parent |
the single parent node of the current node |
preceding |
all nodes that start before the start of the current node, excluding attribute and namespace nodes |
preceding-sibling |
all nodes that start before the start of the current node and have the same parent as the current node |
self |
the current node |