Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

NodeTest

Check if nodes satisfy conditions on the kind or name.


Syntax

NodeTest

graphics/NodeTest.png

NameTest KindTest

Top of page

Description

A NodeTest is used in a step expression and determines kind or name of one or more nodes. You can either specify the name or the type of nodes.

If you specify the name, then nodes of the principal node kind for the current axis will be selected for this step. For the attribute axis, attribute nodes will be selected, for all other axes element nodes will be selected.

If you specify node() using KindTest, then all nodes on the current axis will be selected. Otherwise only the nodes of that kind, if present on the current axis, will be selected.

Top of page

Example

See KindTest and NameTest for examples.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page