Functions

This document describes the functions available in Tamino XQuery 4. Wherever possible, the names correspond to the functions as defined in W3C XQuery. The links below lead to tables listing the available functions, along with the corresponding function in the W3C draft. The link in the W3C column leads you to the description in the W3C specification draft XQuery 1.0 and XPath 2.0 Functions and Operators of August 16, 2002. Remember that the current state of the W3C specification draft may look different. You can reference the functions in two ways:


Notation

The documentation of each function follows this pattern:

  • A one-line summary;

  • A section "Syntax" that specifies the function's signature(s);

  • A section "Description" that documents usage and effect of the function;

  • A section "Arguments" that describes the arguments of the function, if any;

  • A section "Examples" showing different usage examples always using the same sample data.

The signature of a function looks like this:

function-name(argument-type $argument-name, …) => return-type

Here, function-name is the name of the function, along with an optional namespace prefix. The prefix xf is used for functions that are bound to the default namespace http://www.w3.org/2002/08/xquery-functions and thus need not be explicitly declared. In parentheses, zero or more arguments can follow. The argument type is rendered in italics and the argument name is prefixed by $. The return type is at the end, also using italics.