Location Paths
One of the most common uses of XPath is to create
location paths. A location path describes the
location of something in an XML document. The pattern /addressbook/address/city
describes the
location of the elements we want to select. We’ll use location paths as
patterns to find parts of the XML document, then we’ll use XPath
expressions to manipulate them. But before we dive in to the wonders of
location paths, we need to discuss the
context.
Get XSLT, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.