dom:set-evaluation-context( $domain-name as xs:string, $context as element(dom:evaluation-context) ) as empty-sequence()
Set the evaluation context of the domain. An error is raised if the domain cannot be found. If the domain already has triggers associated with it, the triggers will be modified to act in the new evaluation context.
Parameters | |
---|---|
domain-name | The name of the domain to be changed. |
context | The new evaluation context of the domain. Create using dom:evaluation-context. |
xquery version "1.0-ml"; import module namespace dom = "http://marklogic.com/cpf/domains" at "/MarkLogic/cpf/domains.xqy"; dom:set-evaluation-context( "Incoming", dom:evaluation-context( xdmp:database("Modules"), "/apps/" ) )