Hi,
I've create a standalone script which creates a database and run's an xquery although I'm not clear on how to save the result of the xquery to file. generally I would like to create a database and run a series of xqueries each going to file rather than to the console output.
<?xml version="1.0" encoding="UTF-8"?> <commands> <show-databases/> <drop-db name="1997-i4enrich-10k"/> <create-db name="1997-i4enrich-10k"/>
<add path="1997-i4enrich-10k">/mnt/xslt_volume/i4ContentOutput/DebugSet/10k-GHU-2009/MDAFalse/Completed/</add>
<info-db/> <run file='../xquery/section-10k-metrics.xq'/> <close/>
</commands>
I saw this on the documentation however I couldn't get it to work
Q{java:java.io.FileOutputStream}new("output.txt")
btw.. It might be nice to be able to say
<run file='../xquery/section-10k-metrics.xq' outputFile="filename.xml" />
Thanks