Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

DefaultCollationDecl

Declare a default collation.


Syntax

DefaultCollationDecl

graphics/DefaultCollationDecl.png

StringLiteral

Top of page

Description

A DefaultCollationDecl is part of the query prolog and declares a default collation for later use in the query body. It consists of the keywords declare default collation , and a string literal, which is the collation URI.

The collation URI consists of a string literal which is interpreted as relative URL with the base URI http://www.softwareag.com/tamino. It is composed of collation?<option>=<value>. The available options correspond to the child elements of the TSD schema element tsd:collation. They are:

Collation Option Value
alternate specifies how to handle punctuation
caseFirst specifies how to treat the first character of a word
caseLevel use an extra comparison level for case differences (boolean value)
french use French accent sorting (boolean value)
language language code according to ISO 639 (see the list of language codes available in Tamino for details)
normalization perform text normalization (boolean value)
strength one of five comparison levels

The schema user guide provides detailed information about these collation options. See also the Tamino XQuery function tf:getCollation.

Top of page

Example

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page