<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.defaultCollation.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.defaultCollation</api:function-name><api:suggest>fn.defaultcollation</api:suggest><api:suggest>fn</api:suggest><api:suggest>defaultcollation</api:suggest><api:function-link mode="xquery" fullname="fn:default-collation">/apidoc/8.0/fn:default-collation.xml</api:function-link><api:function mode="javascript" name="defaultCollation" type="builtin" lib="fn" category="ContextBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.defaultCollation"><api:summary>
<p xmlns="http://www.w3.org/1999/xhtml">Returns the value of the default collation property from the static context.
Components of the static context are discussed in 
<a href="http://www.w3.org/TR/xpath20/#id-xp-evaluation-context-components">Section C.1 Static Context Components[XP]</a>.
</p>
<p xmlns="http://www.w3.org/1999/xhtml">The default collation property can never be undefined. If it is not
explicitly defined, a system defined default codepoint is used.
In the <code>1.0</code> XQuery dialect, if this is not provided, the Unicode
code point collation
(<code>http://www.w3.org/2005/xpath-functions/collation/codepoint</code>) is used.  In the <code>1.0-ml</code> and <code>0.9-ml</code> XQuery dialects,
the MarkLogic-defined codepoint URI is used
(<code>http://marklogic.com/collation/codepoint</code>).
</p>
</api:summary><api:params/><api:return>String</api:return><api:usage>
  For details about collations in MarkLogic Server, see the "Encodings and
  Collations" chapter of the <em xmlns="http://www.w3.org/1999/xhtml">Developer's Guide</em>.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.defaultCollation()

=&gt; http://marklogic.com/collation/
</pre></api:example></api:function></api:function-page>