clang:language-config-read() as element(lang:user-languages)
This function reads the custom language configuration specification from the cluster configuration files.
custom-language-admin-read
role or the following privileges:
http://marklogic.com/xdmp/privileges/custom-language-read
http://marklogic.com/xdmp/privileges/xdmp-read-cluster-config-file/languages.xml
xquery version "1.0-ml"; import module namespace clang = "http://marklogic.com/xdmp/custom-language" at "/MarkLogic/custom-language.xqy"; clang:language-config-read()//lang:user-language[*:name="ca"]