NameTest

Select nodes by name or wildcard.


Syntax

NameTest

graphics/NameTest.png

QName Wildcard

Description

A NameTest is either a name, or a generic name that you can specify with a wildcard expression. It is used in a step expression to select a node sequence in the current step.

Examples

  • Select all books:

    input()//book

    The book element is specified by its QName.

  • Retrieve Unicode transliterations for the current database:

    declare namespace ino="http://namespaces.softwareag.com/tamino/response2"
    input()//ino:transliteration/ino:*/@*

    In this query there are three steps that involve a NameTest: The first one checks for the QName transliteration that is qualified by the ino namespace. The second name test uses the wildcard expression ino:* that is true for all element nodes that are in the ino namespace. The third name test uses the wildcard expression @* that is true for all attributes.

Related Syntax Constructs

The following construct(s) refer to this construct:

This construct is also related to the following construct(s):

StepExpr