XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / Path expressions – examples / Selecting the context — the self axis

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 1.)

It is also useful to be able to evaluate the evaluation context itself using a relative path expression. This requires a step that effectively stays in place. A step on the self axis meets this requirement. The context node is represented by a period, “.” (familiar from UNIX as the current directory):

   

back to top