title: Include XQuery result through include in MarkLogic
body: <p>Is any way we can include XQuery result in an XML document as we include other document or XPath.</p>
  
  <p>For example: </p>
  
  <pre><code>xquery version "1.0-ml";
  declare namespace xi="http://www.w3.org/2001/XInclude";
  
  xdmp:document-insert("/test1.xml", &lt;document&gt;
    &lt;p&gt;This is a sample document.&lt;/p&gt;
    &lt;xi:include href="test2.xml"/&gt; 
  &lt;/document&gt;);
  
  xquery version "1.0-ml";
  import module namespace xinc="http://marklogic.com/xinclude" at "/MarkLogic/xinclude/xinclude.xqy"; 
  
  xinc:node-expand(fn:doc("/test1.xml"))
  </code></pre>
  
  <p>Can This be done as below: </p>
  
  <pre><code>xquery version "1.0-ml";
  declare namespace xi="http://www.w3.org/2001/XInclude";
  
  xdmp:document-insert("/test1.xml", &lt;document&gt;
    &lt;p&gt;This is a sample document.&lt;/p&gt;
    &lt;xi:include href="test2.xqy?var1=Hello&amp;var2=world/&gt; 
  &lt;/document&gt;);
  
  xquery version "1.0-ml";
  import module namespace xinc="http://marklogic.com/xinclude" at "/MarkLogic/xinclude/xinclude.xqy"; 
  
  xinc:node-expand(fn:doc("/test1.xml"))
  </code></pre>
  
  <p>Any help on this would be most appreciated.</p>