KindTest

Check the kind of node.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

KindTest

graphics/KindTest.png

ProcessingInstructionTest CommentTest TextTest AnyKindTest

Description

A KindTest is one of the two forms of a NodeTest. In a step expression it can test the selected nodes in the following ways:

  • test whether the nodes are of a specific kind: ProcessingInstructionTest and CommentTest,

  • select the text node children (TextTest),

  • test for any kind of node (AnyKindTest),

Example

See the pages of the respective tests for examples.