rem set the variable JAVA to the place where the java command is located rem not the case if you just have one that is correctly installed), for example
rem set JAVA="c:\Program Files\java\jdk1.5.0\bin\java"
set JAVA=java
rem modify the following line to set the classpath (saxon.jar)
set CP=-cp c:\soft\saxon861b\saxon8.jar
%JAVA% %CP% net.sf.saxon.Query %1 %2 %3 %4 %5 %6 %7 %7
(1) Afficher toutes les options:
(2) Exécuter un fichier xquery (donc le xquery sait dans quel fichier chercher):
xquery fichier.xquery
(3) Exécuter un fichier xquery avec un fichier xml:
xquery -s fichier.xml fichier.xquery
(4) Exécuter un fichier xquery avec un fichier xml et mettre le résultat dans un fichier:
xquery -s fichier.xml -o output.xml fichier.xquery