Since Quip consists of two parts, one written in Java and one
written in Clean, there are also two sets of command line options.
Just start the script runQuip.cmd with option --help and you get:
E:\QuiP>./runQuip.cmd --help
java quilt.Main [OPTIONS] [QUIPOPTIONS] QUERYFILE
OPTIONS:
-v, --verbose Prints additional output.
-o, --output FILENAME prints the output to the specified file.
--quilt use the quilt syntax.
--xquery use the xquery syntax(default).
--abql generates only the ABQL.
--cmdquip EXEPATH sets the path for the ‘quip.exe’.
--heapquip HEAPSIZE sets the heap size for the ‘quip.exe’.
--helpquip shows the help for the ‘quip.exe’.
-h, -?, --help shows this help.
As you see, the outfile is specified by -o filename, the XQuery file is the
last command argument
Further options are provided by the part of Quip written in Clean. You can
get help on these by the --helpquip option. Then you get:
E:\QuiP>./runQuip.cmd --helpquip
usage: quip inAbqlFile.xml outXmlFile.xml [options]
where options are:
-file_system : read documents from the file system (starts from current directory)
-non_strict : evaluate user defined Quilt function lazily (default is strict evaluation)
-server name : use the server ‘name’ as Tamino server
-data_base name : use the data base ‘name’ on Tamino server
-home dirName : find documents in subdirectories of ‘dirName’
for ‘fromCollection’ and ‘document’ function
-logging_off : turns logging off (default: logging is made)
-log_file name : write log to file ‘name’ (default: log.txt)
-input file_name: use xml file ‘file_name’ as input document
-quip_heap size : set the integer ‘size’ for quip’s maximal heap space
-value_output : do not output the XML result but its text value
As you can see, here you can specify you data base, but also a input file name,
which is taken as implicit document. This document is used for XPath expression in XQuery,
which do not start with a function call of either ‘document(.)’ or 'fromCollection(.).
so a command line call to Quip you are looking for might be:
./runQuip.cmd -input myDoc.xml -o myResult.xml myQuery.xquery
Hope this helps
Sven Eric
#Tamino#API-Management#webMethods