MarkLogic 9 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"), "/" )
  )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy