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.
Copyright © Galileo Press, Bonn 2008
You may print the online version for your private use.
Otherwise, this chapter from "XSLT 2.0 & XPath 2.0 ― Das umfassende Handbuch" is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn