Loading TOC...

dom:configuration-set-evaluation-context

dom:configuration-set-evaluation-context(
   $context as element(dom:evaluation-context)
) as empty-sequence()

Summary

Set a new context for the CPF configuration. This will ripple down to the restart trigger as well.

Parameters
context An evaluation-context element (for example, from the output of dom:evaluation-context.

Example

xquery version "1.0-ml";
import module namespace dom = "http://marklogic.com/cpf/domains" 
		  at "/MarkLogic/cpf/domains.xqy";

dom:configuration-set-evaluation-context( 
     dom:evaluation-context( xdmp:database("Modules"), "/" ) )
  

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