dls.documentIncludeQuery

dls.documentIncludeQuery(
   uri as String
) as cts.query

Summary

This function returns a query that matches any managed document that has an XInclude link that exactly matches the specified URI.

Parameters
uri The URI of the linked-to document.

Required Privileges

The dls-user role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-user

Example

// Returns the contents of the documents that contain an XInclude to the
// '/foo.xml' document.

const dls = require('/MarkLogic/dls');

cts.search(dls.documentIncludeQuery('/foo.xml'));
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy