
dls:document-checkin( $uri as xs:string, $deep as xs:boolean ) as empty-sequence()
This function checks in (unlocks) the document at the
specified URI to allow other users to modify the document. This function
does not create a new version of the document. You must explicitly use
dls:document-update
to create new versions of a document.
dls:document-checkout
and
dls:document-update
functions.
| Parameters | |
|---|---|
| uri | The URI of the document. |
| deep | If set to true,
then any documents directly or indirectly included by the specified document
are also checked in. |
dls-user role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
xquery version "1.0-ml";
import module namespace dls = "http://marklogic.com/xdmp/dls"
at "/MarkLogic/dls.xqy";
dls:document-checkin("/foo/bar/baz.xml", fn:true())
(: Checks in 'baz.xml' and all of its included documents. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.