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.29Mb 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

Disciplining Little Abby by Serafine Laveaux
Lake People by Abi Maxwell
The One That Got Away by Lucy Dawson
Mary Ann and Miss Mozart by Ann Turnbull
The Mission by Fiona Palmer
Stolen Petals by Katherine McIntyre
His Every Fantasy by Holly Nicolai
Love Again by Christina Marie
Never Cry Wolf by Eden, Cynthia