MarkLogic 12 EA 1 Product Documentation
fn:default-collation

fn:default-collation() as xs:string

Summary

Returns the value of the default collation property from the static context. Components of the static context are discussed in Section C.1 Static Context Components[XP].

The default collation property can never be undefined. If it is not explicitly defined, a system defined default codepoint is used. In the 1.0 XQuery dialect, if this is not provided, the Unicode code point collation (http://www.w3.org/2005/xpath-functions/collation/codepoint) is used. In the 1.0-ml and 0.9-ml XQuery dialects, the MarkLogic-defined codepoint URI is used (http://marklogic.com/collation/codepoint).

Usage Notes

For details about collations in MarkLogic Server, see the "Encodings and Collations" chapter of the Developer's Guide.

Example

xquery version "1.0-ml";
declare default collation "http://marklogic.com/collation/codepoint";
fn:default-collation()

=> http://marklogic.com/collation/codepoint

Example

xquery version "1.0";
declare default collation "http://marklogic.com/collation/codepoint";
fn:default-collation()

=> http://www.w3.org/2005/xpath-functions/collation/codepoint
Powered by MarkLogic Server | Terms of Use | Privacy Policy