MarkLogic Server 11.0 Product Documentation
xdmp:collection-properties

xdmp:collection-properties(
   [$uri as xs:string*]
) as document-node()*

Summary

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).

Example

  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
Powered by MarkLogic Server | Terms of Use | Privacy Policy