MarkLogic Server 11.0 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. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy