Skip to Content
XSLT and XPATH: A Guide to XML Transformations
book

XSLT and XPATH: A Guide to XML Transformations

by John Robert Gardner, Zarella L. Rendon
July 2001
Intermediate to advanced
592 pages
11h 16m
English
Pearson
Content preview from XSLT and XPATH: A Guide to XML Transformations

4.2. Abbreviations

Throughout the preceding sections, we have touched upon various abbreviations used for XPath axes, names, and functions. The most common is the abbreviation, by way of omission, for the child:: axis. That abbreviation, of course, is simply an absence. The presence of a node name, such as an element-type name, indicates the child axis by default.

Another fairly “minimalist” abbreviation is that for the self:: axis. This derives directly from UNIX directory syntax and is simply “.” a period by itself.

Not surprisingly, then, the common referent for the parent directory in UNIX is also seen as the abbreviation for the parent:: axis in XPath location expressions: “..” two periods.

The descendant:: axis can be abbreviated with //. ...

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

Beginning XSLT and XPath: Transforming XML Documents and Data

Beginning XSLT and XPath: Transforming XML Documents and Data

Ian Williams
Java and XSLT

Java and XSLT

Eric M. Burke
Learning XSLT

Learning XSLT

Michael Fitzgerald

Publisher Resources

ISBN: 0130404462Purchase book