
infodev:check-options( $options as element(info:options) ) as element(info:report)*
[DEPRECATED] This function checks the options node to ensure that the structure and values are correct. It returns a sequence of report elements. An empty sequence indicates that the options node is correct.
| Parameters | |
|---|---|
| options | The options node to be checked. |
xquery version "1.0-ml";
import module namespace infodev = "http://marklogic.com/appservices/infostudio/dev"
at "/MarkLogic/appservices/infostudio/infodev.xqy";
infodev:check-options(
<options name="default" xmlns="http://marklogic.com/appservices/infostudio">
<collection>http://marklogic.com/appservices/infostudio</collection>
<error-handling>continue-with-warning</error-handling>
<fab-retention-duration>P30D</fab-retention-duration>
<file-filter>^[^\.]</file-filter>
<max-docs-per-transaction>100</max-docs-per-transaction>
<overwrite>overwrite</overwrite>
<ticket-retention-duration>P30D</ticket-retention-duration>
<uri>
<literal>http://foo</literal>
<filename/>
<literal>.</literal>
<ext/>
</uri>
</options>)
(: Returns an empty sequence if the options node is correct. Otherwise, errors
are returned. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.