Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

tf:createAdjacentTextReference

Create reference descriptions for adjacent text locations.


Syntax

tf:createAdjacentTextReference(node $input, integer $distance, token+ $word) => node*

Top of page

Description

The function tf:createAdjacentTextReference is specific to Tamino. It takes a node sequence, an integer value indicating a distance, and one or more word tokens as arguments. Similar to the function tf:containsAdjacentText it searches all word tokens of the node that are within the specified distance respecting the token order. However, it does not return a Boolean value, but a sequence of reference descriptions for all nodes found.

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

With tf:createAdjacentTextReference 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

$distance

integer value denoting proximity distance

$word

a word token

Top of page

Example

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page