XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / Getting started with XPath: path expressions

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

XPath path expressions locate parts of the source document from within a stylesheet. The nodes described by a path expression, such as elements, attributes and text, are selected and can then be processed, for example by extracting their text content, as just demonstrated.

In the context of the last example stylesheet a path expression was introduced that consisted simply of the identifier of the element to be addressed. Things are not quite that simple, however. To demonstrate this, two new example documents are presented on the following pages.

   

   

back to top