p:condition( $module as xs:string, $description as xs:string?, $options as element()? ) as element(p:condition)
Construct a condition element.
xquery version "1.0-ml"; import module namespace p = "http://marklogic.com/cpf/pipelines" at "/MarkLogic/cpf/pipelines.xqy"; let $options := <options xmlns="/app/test-root.xqy"> <root>workitem</root> </options> return p:condition("/app/test-root.xqy", (), $options ) ===> returns <p:condition xmlns:p="http:marklogic.com/cpf/pipelines"> <p:module>/app/test-root.xqy</p:module> <options xmlns="/app/test-root.xqy"> <root>workitem</root> </options> </p:condition>