dom:domain-scope( $document-scope as xs:string, $uri as xs:string, $depth as xs:string? ) as element(dom:domain-scope)
Create a domain scope element.
xquery version "1.0-ml"; import module namespace dom = "http://marklogic.com/cpf/domains" at "/MarkLogic/cpf/domains.xqy"; dom:set-domain-scope( "Test", dom:domain-scope( "document", "http://example.com/test.xml", () ) )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.