xinc:node-expand( $node as node() ) as node()
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. |
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") )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.