files/en-us/web/xml/xpath/reference/axes/index.md
There are thirteen different axes in the XPath specification. An axis represents a relationship to the context node, and is used to locate nodes relative to that node on the tree.
For further information on using XPath expressions, please see the Transforming XML with XSLT guide. Also see the 'axes' section in the xpath spec.
ancestor
ancestor-or-self
attribute
@).child
descendant
parent of an attribute node is an element node, but attribute nodes are not the children of their parents.descendant-or-self
parent of an attribute node is an element node, but attribute nodes are not the children of their parents.following
descendant, attribute, and namespace nodes.following-sibling
namespace (not supported)
parent
..).preceding
ancestor, attribute and namespace nodes.preceding-sibling
self
.).