O'Reilly logo

Special Edition Using XSLT by Michael Floyd

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

Location Paths

Location paths, as the name suggests, specify a pathway, or series of steps, that can be followed to reach a point in the document tree. The location path is usually stated in terms of an agreed upon starting point, called a context.

In the examples that follow, diagrams illustrate the part of the tree being selected by each location path. A large arrow marks the initial context node, and dashed arrows show the path from that point to the selected node, which will be in a highlighted box.

Location Path Syntax

XPath’s location path syntax is in many ways similar to the syntax of filesystem paths:

/usr/pkg/bin/bash 

or:

\windows\win.com 

These just consist of a list of names separate by slashes (the kind of slash used depends ...

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