Next / Previous / Contents / Shipman's homepage

4. XPath reference

The XPath language is used to describe locations in a document tree. It is the expression language used by XSLT. See the XPath specification for complete details.

A well-formed XML document can be visualized as a tree (in the computer science meaning of the term), and this view is used throughout XPath and XSLT. For example, if a certain document represents a book, it might have a top-level tag book, containing elements like chapter and appendix.

A few important definitions: