Nux 1.0

nux.xom.tests
Class XQueryCommand

java.lang.Object
  extended bynux.xom.tests.XQueryCommand

public final class XQueryCommand
extends Object

Simple command line demo that runs a given XQuery against a set of files and prints the result sequence. A query can be read from a file or given inline between curly braces. This demo is just a convenience toy for new users to get started, and not intended for production use.

Example usage (using Unix shell quoting with the ' character):

 export CLASSPATH=lib/nux.jar:lib/saxon8.jar:lib/saxon8-xom.jar:lib/xom.jar
 
 java nux.xom.tests.XQueryCommand '{doc("samples/data/periodic.xml")/PERIODIC_TABLE/ATOM[NAME = "Zinc"]}'
 java nux.xom.tests.XQueryCommand '{count(//*)}' samples/data/*.xml 
 java nux.xom.tests.XQueryCommand samples/xmark/q03.xq samples/xmark/auction-0.01.xml
 java nux.xom.tests.XQueryCommand ~/unix/java/share/xml/saxonb-8.3/use-cases/r/q1.xq 
 

Author:
whoschek.AT.lbl.DOT.gov, $Author: hoschek3 $

Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

Nux 1.0