Wildcard

Select nodes matching the principal node kind.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

Wildcard

graphics/Wildcard.png

NCName NCName

Description

A Wildcard selects nodes of the principal node kind.

Examples

  • Retrieve Unicode transliterations for the current database:

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

    Here two namespaces are declared and used in the query. The wildcard expression my_ino:* matches all nodes of the principal node kind element that are bound to the namespace prefixed by my_ino. The second expression ino:@* matches all nodes of the principal node kind attribute that are bound to the namespace prefixed by ino. Since both namespace prefixes bind the same namespace URI, the usage of my_ino and ino in this query is exchangeable.

  • Select all names of the current collection:

    input()//*:name

    This query selects all name elements independent of the namespace.