====Examples====
* '''QueryIf a default collation is specified, it applies to all collation-dependent string operations in the query. The following expression yields <code>true</code>: ''' <codepre class="brush:xquery">declare default collation 'http://basex.org/collation?lang=de;strength=secondary'; 'Straße' = 'Strasse'</codepre> Collations can also be specified in {{Code|order by}} and {{Code|group by}} clauses of FLWOR expressions. This query returns {{Code|à plutôt! bonjour!}}: <br/>'''Resultpre class="brush: '''<code>true</codexquery">* '''Query: '''<code>for $w in ("à plutôtbonjour!", "bonjourà plutôt!") order by $w collation "?lang=fr" return $w</codepre><br/>'''Result Various string function exists that take an optional collation as argument: The following functions give us {{Code|a}} and {{Code|1 2 3}} as results: ''' <code>à plutôt! bonjour!</code>* '''Querypre class="brush: '''<codexquery"><nowiki>distinct-values(("a", "á", "à"), "http://basex.org/collation?lang=it-IT;strength=primary"),index-of(("a", "á", "à"), "a", "?lang=it-IT;strength=primary")</nowiki></code><br/>'''Result: '''<code>a</codepre>
=Changelog=