
infodev:effective-policy( $policy-name as xs:string?, $policy-deltas as element(info:options)* ) as element(info:options)
[DEPRECATED] This function temporarily resets the specified deltas on the named policy, while leaving the policy itself unchanged.
| Parameters | |
|---|---|
| policy-name | The name of the policy to temporily modify. |
| policy-deltas | One or more deltas to be applied to the policy. |
xquery version "1.0-ml";
import module namespace infodev = "http://marklogic.com/appservices/infostudio/dev"
at "/MarkLogic/appservices/infostudio/infodev.xqy";
let $uri :=
<options name="default" xmlns="http://marklogic.com/appservices/infostudio">
<uri>
<literal>http://docs/</literal>
<filename/>
<literal>.</literal>
<ext/>
</uri>
</options>
let $error:=
<options name="default" xmlns="http://marklogic.com/appservices/infostudio">
<error-handling>error</error-handling>
</options>
return infodev:effective-policy("default", ($uri, $error))
(: Returns an options node reflecting different URI and error-handling settings
in the default policy. :)