NodeTest

Check if nodes satisfy conditions on the kind or name.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

NodeTest

graphics/NodeTest.png

NameTest KindTest

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.

Example

See KindTest and NameTest for examples.