Loading TOC...

MarkLogic 10 Product Documentation
dom:set-domain-scope

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

Summary

Set the scope 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 on the new scope as well.

Parameters
domain-name The name of the domain to be changed.
scope The new scope of the domain. Create using dom:domain-scope.

Example

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

  dom:set-domain-scope( "Incoming", 
       dom:domain-scope( "directory", "/incoming/", "0" )
  )
  

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