tf:createNodeReference

Create reference descriptions for nodes.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

tf:createNodeReference(node* $input) => node*

Description

The function tf:createNodeReference is specific to Tamino. It takes a node sequence as argument and returns a sequence of reference descriptions for all nodes.

You can use reference descriptions for subsequent highlighting of these nodes, see tf:highlight.

Argument

$input

a sequence of nodes

Example

  • Create reference descriptions to all review nodes:

    for $a in input()/reviews
    return tf:createNodeReference($a/entry/review)

    This query returns reference descriptions to all nodes found:

    graphics/xqr-refdesc-node.png