
admin:group-namespace( $prefix as xs:string, $namespace-uri as xs:string ) as element(gr:namespace)
This function constructs a namespace element with the specified prefix and URI.
| Parameters | |
|---|---|
| prefix | The namespace prefix. |
| namespace-uri | The namespace URI. |
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
admin:group-namespace("myprefix", "http://myuri/namespace")
(: the namespace element :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.