<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.collationCanonicalUri.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.collationCanonicalUri</api:function-name><api:suggest>xdmp.collationcanonicaluri</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>collationcanonicaluri</api:suggest><api:function-link mode="xquery" fullname="xdmp:collation-canonical-uri">/apidoc/8.0/xdmp:collation-canonical-uri.xml</api:function-link><api:function mode="javascript" name="collationCanonicalUri" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.collationCanonicalUri"><api:summary>
  Returns the canonical URI for the given URI, if it represents a
  valid collation.  A canonical URI is the unique string MarkLogic Server
  uses to identify a given collation.  The canonical URI string places any
  attributes that occur in the URI in a predefined order, and it removes
  any attributes that are redundant due to locale defaults.
</api:summary><api:params><api:param name="collation-uri" type="xs:string"><api:param-description>
  A collation URI.
  </api:param-description><api:param-name>collation-uri</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>String</api:return><api:usage>
  If the specified collation URI is not a valid URI, an exception is thrown.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.collationCanonicalUri("http://marklogic.com/collation/en/S3");
=&gt; http://marklogic.com/collation/en
</pre>
</api:example></api:function></api:function-page>