XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (419 page)

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
6.26Mb size Format: txt, pdf, ePub

A rooted path represents a path starting at the root node of the tree that contains the context node.

The syntax
/A/B/C
is familiar to anyone who has used Unix filenames, though it is not actually very logical. I find it helpful to think of the
/
at the start of a rooted path expression as being a unary version of the binary
/
operator. This means that a rooted path
/X
can be considered as an abbreviation for the expression
(/)/X
, in the same way as
-3
is an abbreviation for
(0)-3
. That is, the
/

Other books

Sunshine and Shadows by Pamela Browning
Catch My Fall by Ella Fox
The Fashion Police by Sibel Hodge
Vampire Love Story by H. T. Night
Vision Impossible by Victoria Laurie
Taking Faith by Shelby Fallon
Seize the Night: New Tales of Vampiric Terror by Kelley Armstrong, John Ajvide Lindqvist, Laird Barron, Gary A. Braunbeck, Dana Cameron, Dan Chaon, Lynda Barry, Charlaine Harris, Brian Keene, Sherrilyn Kenyon, Michael Koryta, John Langan, Tim Lebbon, Seanan McGuire, Joe McKinney, Leigh Perry, Robert Shearman, Scott Smith, Lucy A. Snyder, David Wellington, Rio Youers