Loading TOC...

dom:set-evaluation-context

dom:set-evaluation-context(
   $domain-name as xs:string,
   $context as element(dom:evaluation-context)
) as empty-sequence()

Summary

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.

Example

  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/" )
  )
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.