Chapter 3. XPath Patterns and Expressions

In the previous chapter, XSLT, you learned about creating and applying templates to transform XML documents. When you create a template, you use a pattern to specify the nodes that the template can be applied to. When you apply a template, you use an expression to specify the node set that should be processed. You write both patterns and expressions using XML Path Language (XPath) syntax.

XPath is a language for selecting nodes and node sets by specifying their location paths in the XML document. This chapter will describe how to specify XPath location paths in detail.

You can also use XPath in other XSLT instructions to further process given node sets to return values instead of nodes. XPath has built-in ...

Get XML: Visual QuickStart Guide, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.