XML technologies / XPath / XPath 2.0: language reference / Path expressions: location steps / Node tests

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, chapter 4.)

A node test (node test) is a test expression that must evaluate to true for every node in a step’s result set; otherwise, the node is discarded. Within an axis step, this test is applied to all nodes on the specified axis.

The requirement expressed by a node test can concern a node’s name (name test) or its node kind (kind test), meaning whether it is an element, attribute, text node, etc., rather than its data type. Its type annotation (type annotation) can also be evaluated separately or additionally, for element and attribute nodes only.

   

back to top