cpf:document-set-state( $doc as xs:string, $state as xs:anyURI ) as empty-sequence()
Set the document's state to the given state.
Parameters | |
---|---|
doc | The URI of the document. |
state | The new state of the document. |
xquery version "1.0-ml"; import module namespace cpf = "http://marklogic.com/cpf" at "/MarkLogic/cpf/cpf.xqy"; cpf:document-set-state( "/myDocs/example.xml", xs:anyURI("http://marklogic.com/states/reprocess") )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.