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
12.03Mb 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

One Dog at a Time by Farthing, Pen
New Guinea Moon by Kate Constable
Candlelight Conspiracy by Dana Volney
The Escape Artist by Diane Chamberlain
Putting on Airs by Brooke, Ivy
Peter and Alice by John Logan
Chosen by James, Ella