Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

tf:createTextReference

Create reference descriptions for text locations.


Syntax

tf:createTextReference(node* $input, string $searchString) => node*

Top of page

Description

The function tf:createTextReference is specific to Tamino. It takes a node sequence and a search string as arguments. Similar to the function tf:containsText it searches a string, consisting of one or more words, in a node. However, it does not return a Boolean value, but a sequence of reference descriptions for each node found.

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

With tf:createTextReference you can create reference descriptions based on a search using wildcard characters. The section Pattern Matching in the XQuery 4 User Guide explains this in detail.

Top of page

Arguments

$input

node

$searchString

string value

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page