saxon: using fn:doc() in a query parameter
<p>Why can't I use fn:doc in a "query parameter using xpath"?</p>

<p>The document parameter is working fine:</p>

<pre><code>saxon -q:test.xq +foo=foo.xml 
</code></pre>

<p>But this gives me the error <em>"Unrecognized option: foo.xml"</em></p>

<pre><code>saxon -q:test.xq ?foo=doc("foo.xml")
</code></pre>