MarkLogic Server 11.0 Product Documentation
xinc:node-expand

xinc:node-expand(
   $node as node()
) as node()

Summary

This function recursively examines the node for XInclude references and expands them, following the rules of the XInclude specification. The result is a node in which all the XInclude references have been resolved, or an error if there were unresolvable references with no fallback specifications.

Parameters
node The node to expand.

Usage Notes

URI references are resolved against the current database.

Example

  xquery version "1.0-ml";
  import module namespace xinc = "http://marklogic.com/xinclude" 
		  at "/MarkLogic/xinclude/xinclude.xqy";

  xinc:node-expand( fn:doc("http://example.org/mydoc.xml") )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy