MarkLogic 12 EA 1 Product Documentation
xdmp.collationCanonicalUri

xdmp.collationCanonicalUri(
   collation-uri as String
) as String

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.

Parameters
collation-uri A collation URI.

Usage Notes

If the specified collation URI is not a valid URI, an exception is thrown.

Example

xdmp.collationCanonicalUri("http://marklogic.com/collation/en/S3");
=> http://marklogic.com/collation/en
Powered by MarkLogic Server | Terms of Use | Privacy Policy