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

OMG Baby! by Garcia, Emma
Las puertas de Thorbardin by Dan Parkinson
Unlocked by Evelyn Adams
He Loves Me Not by Caroline B. Cooney
Evanescere: Origins by Vanessa Buckingham