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

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
6.84Mb size Format: txt, pdf, ePub
MathML:*
This
NameTest
selects all nodes whose names are in the MathML namespace. These may be attribute nodes or element nodes, depending on the axis. There must be an enclosing element in the stylesheet that declares this prefix, by having an attribute of the form:
xmlns:MathML=“http://www.w3.org/1998/Math/MathML”
.
*
This
NameTest
selects all elements, unless it is used with the attribute axis (in the form
attribute::*
or
@*
) when it selects all attributes, or with the namespace axis (as
namespace::*
), when it selects all namespaces.
text()
This
NodeTest
selects all text nodes on the relevant axis.
processing-instruction()
This
NodeTest
selects all processing instructions on the relevant axis. Note that the XML declaration at the start of the document is
not
a processing instruction, even though it looks like one.
processing-instruction (‘ckpt’)
This
NodeTest
selects all processing instructions with the name (or
PITarget
as the XML specification calls it)
ckpt
: for example, the processing instruction
frequency = daily?>
.
node()
This
NodeTest
selects all nodes on the relevant axis.

Name Tests

As we have seen, a
NodeTest
is either a
NameTest
or a
KindTest
. This section describes
NameTests
. A
NameTest
is either a name, or a generic name specified using wildcards.

Syntax

Expression
Syntax
NameTest
QName | Wildcard
Wildcard
*
| NCName
:*
|
*:
NCName

Other books

The Question of Bruno by Aleksandar Hemon
The Rebel Spy by London, April
Shoot to Win by Dan Freedman
Eden's Hammer by Lloyd Tackitt
Falling Off Air by Catherine Sampson
Bridge of Souls by Fiona McIntosh
The Leper's Return by Michael Jecks