xdmp:node-collections

xdmp:node-collections(
   $node as node()
) as xs:string*

Summary

Returns any collections for the node's document in the database. If the specified node does not come from a document in a database, then xdmp:node-collections returns an empty sequence.

Parameters
node The node whose collections are to be returned.

Example

xdmp:node-collections(doc("http://marklogic.com/document"))
=> ("http://acme.com/this-collection", "http://acme.com/that-collection")
Powered by MarkLogic Server | Terms of Use | Privacy Policy