pub enum Axis {
Show 13 variants
Ancestor,
AncestorOrSelf,
Attribute,
Child,
Descendant,
DescendantOrSelf,
Following,
FollowingSibling,
Namespace,
Parent,
Preceding,
PrecedingSibling,
Self_,
}Expand description
XPath 1.0 axis.
Variants§
Ancestor
ancestor — all ancestors of the context node (parent, grandparent, …)
AncestorOrSelf
ancestor-or-self — all ancestors plus the context node itself
Attribute
attribute — the attributes of the context node
Child
child — the children of the context node
Descendant
descendant — all descendants of the context node (children, grandchildren, …)
DescendantOrSelf
descendant-or-self — all descendants plus the context node itself
Following
following — every node after the context node in document order, excluding descendants
FollowingSibling
following-sibling — the siblings that follow the context node
Namespace
namespace — the namespace nodes of the context node
Parent
parent — the parent of the context node (at most one node)
Preceding
preceding — every node before the context node in document order, excluding ancestors
PrecedingSibling
preceding-sibling — the siblings that precede the context node
Self_
self — the context node itself