dls:document-version-uris( $uri as xs:string ) as xs:string*
This function returns the URIs of all versions of a
managed document. This includes URIs to the document properties
of versions of documents that have been deleted but with history
retained. See
dls:document-version-delete
for
details on the retain-history
argument.
Parameters | |
---|---|
uri | The URI of the document. |
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-version-uris("/foo/bar/baz.xml") (: Returns the URIs of all versions of the '/foo/bar/baz.xml' document. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.