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

You Majored in What? by Katharine Brooks
The Mistress's Revenge by Tamar Cohen
Julie's Butterfly by Greta Milán
Perfect Stranger by KB Alan
OwlsFair by Zenina Masters
Dark Tales 1 by Viola Masters
Heart of War by John Masters
Mary Coin by Silver, Marisa