Restrict the type of a node in a NodeTest
.
A NodeType
is used in a NodeTest
and restrict
the node-set to the specified type of node. See the description to
NodeTest
for more details.
It corresponds to the expression NodeType
defined in XPath,
Section 3.7, Rule
38 with the exception that the XPath definition also includes a
named processing instruction which in X-Query is subsumed in the definition of
NodeTest
. However, this difference is of no practical
relevance.
Select all comment nodes:
//comment()
Retrieve all children of the context node:
node()
Step |