-
galax-run
- The main Galax XQuery interpreter.
The simplest way to use Galax is by calling the galax-run interpreter
from the command line.
For instance, the following commands from the Galax home directory:
% echo "<two> 1+1 </two>" > test.xq
% $(GALAXHOME)/bin/galax-run test.xq
<two>2</two>
evaluates the simple query <two> { 1+1 } </two>
and prints the
XML value <two>2</two>
.
- galax-parse
- A stand-alone XML document parser and XML Schema
validator.
This tool is useful for checking whether an input
document validates against an XML Schema.
For instance, this command will validate the document in
hispo.xml against the schema in hispo.xsd:
% $(GALAXHOME)/bin/galax-parse -validate -xmlschema $(GALAXHOME)/examples/docs/hispo.xsd $(GALAXHOME)/examples/docs/hispo.xml
- galax-mapschema
- A stand-alone tool that maps XML Schema documents into the XQuery
type system. This tools is useful for checking whether Galax
recognizes all the constructs in your XML Schema. It also eliminates a lot of the
``noise'' in XML Schema's XML syntax.
For instance, this command will print out the XQuery type
representation of the schema in hispo.xsd:
% $(GALAXHOME)/bin/galax-mapschema $(GALAXHOME)/examples/docs/hispo.xsd
Chapter