xdmp:document-properties( [$uri as xs:string*] ) as document-node()*
Returns a sequence of properties documents, one for each of the specified documents that has a corresponding properties document. If no documents are specified, returns a sequence of properties documents for all documents in the database that have a corresponding properties document.
Parameters | |
---|---|
uri | A sequence of document URIs. |
xdmp:document-properties("/mydoc.xml") => <prop:properties xmlns:prop="http://marklogic.com/xdmp/property"> <cpf:processing-status xmlns:cpf="http://marklogic.com/cpf">done </cpf:processing-status> <cpf:last-updated xmlns:cpf="http://marklogic.com/cpf"> 2010-05-24T16:28:11.577608-07:00</cpf:last-updated> <cpf:state xmlns:cpf="http://marklogic.com/cpf"> http://marklogic.com/states/final</cpf:state> <prop:last-modified>2010-05-24T16:29:58-07:00</prop:last-modified> </prop:properties>
xdmp:document-properties() => All of the document properties, for example: <prop:properties xmlns:prop="http://marklogic.com/xdmp/property"> Property Node1 </prop:properties> <prop:properties xmlns:prop="http://marklogic.com/xdmp/property"> Property Node2 </prop:properties> <prop:properties xmlns:prop="http://marklogic.com/xdmp/property"> Property NodeN </prop:properties>