XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / Path expressions – examples / The step to the parent element – the parent axis

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

Movement from the context node to its parent is described by the parent axis. It also has an abbreviation borrowed from UNIX and DOS file syntax: two consecutive dots. This axis selects at most one node, the parent of the context node.

Our discussion of path expressions is not yet complete. For example, accessing attribute values has not yet been explained; that follows on the next pages. It would also be useful to refine conditions and filter similar elements selected by a path expression down to those actually of interest. This is done through filter expressions called predicates, discussed in a later section.

   

back to top