TextTest

Check for text nodes.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

TextTest

graphics/TextTest.png

Description

A TextTest restricts the node sequence to text nodes. This test is not meaningful on the attribute axis, since attributes have no text nodes.

Example

  • Select the text nodes of all patient's surnames:

    input()/patient/name/surname/text()

    Text nodes appear as xq:textNode in the response document returned by Tamino:

    Query Result     using TextTest