Declare a default collation.
The following construct(s) refer to this construct:
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.
Declare default collation for the French language:
declare default collation "collation?language=fr"