infodev:collector-options( $policy-name as xs:string?, $policy-deltas as element(info:options)* ) as element(dg:options)?
[DEPRECATED] This function returns an options node in the xdmp:document-get
namespace
that is ready to pass into xdmp:document-get
, including default-namespace,
repair, format, default-language, encoding if they are
defined by policy or options.
Parameters | |
---|---|
policy-name | The name of a stored ingestion policy. |
policy-deltas | Zero or more options nodes that override those in the stored or default policy. |
xquery version "1.0-ml"; import module namespace infodev = "http://marklogic.com/appservices/infostudio/dev" at "/MarkLogic/appservices/infostudio/infodev.xqy"; let $options := <options xmlns="http://marklogic.com/appservices/infostudio"> <format>xml</format> </options> return infodev:collector-options("default", $options) => <dg:options xmlns:dg="xdmp:document-get"> <dg:format>xml</dg:format> </dg:options>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.