qexo-general@gnu.org
[Top] [All Lists]

Re: [Qexo-general] Running queries against user-specified XML files

Subject: Re: [Qexo-general] Running queries against user-specified XML files
From: Per Bothner
Date: Thu, 22 Mar 2007 10:49:02 -0700
David O'Callaghan wrote:
Is it possible to use Qexo to run a query in an xql file against a
user-specified XML file?

I suggest using an external variable:

foo.xq:

declare variable $xml-file external;
<result>{doc($xml-file)}</result>


qexo xml-file="/tmp/foo.xml" -f /tmp/foo.xq

This needs to be documented somewhere ...
--
        --Per Bothner
per@xxxxxxxxxxx   http://per.bothner.com/


_______________________________________________
Qexo-general mailing list
Qexo-general@xxxxxxx
http://lists.gnu.org/mailman/listinfo/qexo-general

<Prev in Thread] Current Thread [Next in Thread>