Loading TOC...


   [$policy-name as xs:string?],
   [$policy as element(info:options)?]
) as empty-sequence()


[DEPRECATED] This function sets an ingestion policy, which consists of a reusable <options> node defining parameters for content loading and transformation.

policy-name The name of this ingestion policy. If the policy already exists, it is overwritten without warning. If no name or the empty string is provided, the new policy replaces the default policy (named 'default').
policy An options node. If provided, it will be merged with a set of global reasonable defaults and stored as the named policy. If no $policy is provided, the content is the set of global defaults.


  xquery version "1.0-ml"; 

  import module namespace info = "http://marklogic.com/appservices/infostudio"  
      at "/MarkLogic/appservices/infostudio/info.xqy";

    <options name="default" xmlns="http://marklogic.com/appservices/infostudio">

  (: Defines and sets a default polcy to load all documents with the uri of 
     http://docs/mydocs. :)

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