
xdmp:collection-properties( [$uri as xs:string*] ) as document-node()*
Returns a sequence of properties documents, one for each document in the specified collection(s) that has a corresponding properties document.
| Parameters | |
|---|---|
| uri | The URI(s) of the collection(s). |
xquery version "1.0-ml";
declare namespace cpf="http://marklogic.com/cpf";
for $d in xdmp:collection-properties(
("http://example.com/col1/",
"http://example.com/col2/"))
where $d/property::cpf:error
return xdmp:node-uri($d)
=> A list of document URIs of documents that have a
cpf:error property in their corresponding properties
documents. For example:
http://example.com/bar.xml http://example.com/baz.xml
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.