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
10Mb size Format: txt, pdf, ePub
ads

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).
BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
10Mb size Format: txt, pdf, ePub
ads

Other books

Mine to Keep by Sam Crescent
The Deadliest Sin by The Medieval Murderers
The Wrong Chemistry by Carolyn Keene
Crying for the Moon by Sarah Madison
The Private Club 3 by Cooper, J. S., Cooper, Helen
Hot Water by Erin Brockovich