Loading TOC...

MarkLogic 10 Product Documentation
dls:document-include-query

dls:document-include-query(
   $uri as xs: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

  xquery version "1.0-ml";

  import module namespace dls = "http://marklogic.com/xdmp/dls" 
      at "/MarkLogic/dls.xqy";

  cts:search(fn:doc(), dls:document-include-query("/foo.xml"))

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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.