XML technologies / XPath / XPath 2.0: language reference / Path expressions: axes / Self axis

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, chapter 4.)

Defined for: XPath 1.0 and 2.0, XQuery 1.0

Direction: forward

Axis identifier: self

Abbreviated syntax: .

The self axis

Figure: the self axis.

The self axis contains exactly one node: the current context node, which need not be an element. The full expression self::node() can be replaced by the equivalent abbreviated dot expression “.”.

Example:

The double colon “::” is the joining operator between the axis identifier and node test. It is not part of the axis identifier.

   

back to top