
cpf:document-set-error( $doc as xs:string, $error as node()? ) as empty-sequence()
Set the document's error trace to the given value.
| Parameters | |
|---|---|
| doc | The URI of the document. |
| error | The error causing processing failure, or empty to erase the existing trace. |
xquery version "1.0-ml";
import module namespace cpf = "http://marklogic.com/cpf"
at "/MarkLogic/cpf/cpf.xqy";
cpf:document-set-error( "/myDocs/example.xml", () )