Loading TOC...

MarkLogic Server 11.0 Product Documentation
dom:evaluation-context

dom:evaluation-context(
   $database as xs:unsignedLong,
   $root as xs:string
) as element(dom:evaluation-context)

Summary

Create an evaluation context element.

Parameters
database The unique identifier of the database in which the content processing actions will be executed. All the modules used in the content processing application must be in this database.
root A root path under which modules are located.

Example

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

  dom:set-evaluation-context( "Test", 
     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.