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

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

Note that if a default namespace for elements has been set up, then the only way to select those elements whose namespace URI is null is to include a predicate that tests the result of the
namespace-uri()
function.

Examples of Name Tests

Expression
Description
*
Matches any name. If
*
is used on its own, it represents the step
child::*
, which selects all child elements of the context node, regardless of their name.
xt:*
Matches any name in the namespace bound to the prefix
xt
. If
xt:*
is used on its own, it represents the step
child::xt:*
, which selects all child elements of the context node that are in the namespace bound to the prefix
xt
.
title
Matches a node whose local name is name
title
and whose namespace URI is null, unless a default namespace for elements has been established in the context (and then, only when the axis is not the attribute or namespace axis).

Other books

The Lesser Kindred (ttolk-2) by Elizabeth Kerner
Morrighan by Mary E. Pearson
Alone by Tiffany Lovering
The Clockwork Heart by Lilliana Rose
Wintercraft by Jenna Burtenshaw
For One More Day by Mitch Albom
Married by Morning by Hays-Gibbs, Linda
Dismantled by Jennifer McMahon
Murder at the Pentagon by Margaret Truman