Loading TOC...

MarkLogic 10 Product Documentation
info:policy

info:policy(
   $policy-name as xs:string
) as element(info:options)?

Summary

[DEPRECATED] This function returns the stored policy matching the specified policy. If the policy does not exist, this function returns an empty sequence.

Parameters
policy-name Name of the policy to be returned.

Example

  xquery version "1.0-ml"; 

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

  info:policy("default") 

  (: Returns the default policy. :)
     

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