Skip to Content
Special Edition Using XSLT
book

Special Edition Using XSLT

by Michael Floyd
January 2002
Intermediate to advanced
480 pages
11h 5m
English
Que
Content preview from Special Edition Using XSLT

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Special Edition Using XML, Second Edition

Special Edition Using XML, Second Edition

- et al. David Gulbransen
XML for Publishers

XML for Publishers

Keith Fahlgren

Publisher Resources

ISBN: 0789725053Purchase book