O'Reilly logo

XML: Visual QuickStart Guide, Second Edition by Kevin Howard Goldberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required