xdmp.collationCanonicalUri( collation-uri as String ) as String
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. |
xdmp.collationCanonicalUri("http://marklogic.com/collation/en/S3"); => http://marklogic.com/collation/en
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.