SAXONB-XQUERY(1) | SAXONB-XQUERY(1) |
NAME¶
saxonb-xquery - command line XQuery processor
SYNOPSIS¶
saxonb-xquery [OPTION...] QUERYFILE [NAME=VALUE...]
DESCRIPTION¶
This manual page documents briefly the saxonb-xquery command. This page was written for the Debian(TM) distribution because the original program does not have a manual page. Still, it has HTML documentation which is shipped in the libsaxonb-java-doc package.
saxonb-xquery is a command line wrapper around the Saxon-B XSLT and XQuery processor. Using saxonb-xquery you can evaluate XQuery queries directly from the command line. Internally, saxonb-xquery is a wrapper around the Java class net.sf.saxon.Query implemented by Saxon-B.
saxonb-xquery should be invoked passing a (required) filename containing the XQuery query to be evaluated; the special filename "-" can be given to require reading the query from standard input.
Before the query filename a list of options can be given, see below.
Parameters¶
At the end of the command line, a list of parameters can be given. Parameters are passed using the syntax NAME=VALUE, to specify parameters´ names and values.
A parameter name prefixed with "+" (plus sign) will be interpreted as a filesystem path parameter If the path points to a single file, that file will be parsed as XML and its document node will be passed as the parameter value. If the path points to a directory, all directly contained files will be parsed as XML files, and the sequence of their document nodes will be passed as the parameter value.
A parameter name prefixed with "!" (exclamation mark) will be interpted as a output/serialization parameter. See the specifications of XQuery and XSLT 2.0 for more information on output/serialization parameters.
To pass parameters belonging to the non-null namespace, the syntax {uri}localname=value is provided.
Parameters will be visible as external variables during query evaluation, provided they have been declared in the query prolog. See the XQuery specification for more information on variables and their declarations.
OPTIONS¶
A summary of supported options is included below. Options can be passed in any order.
We first report the options which are shared by saxonb-xquery and saxonb-xslt, then those specific to saxonb-xquery (or which have a different semantics).
Some options are flagged as "Saxon-SA only", such options work only if Saxon-SA is installed. Note that Saxon-SA is a commercial product, as such it is not available in Debian.
Common options¶
-cr:classname
-dtd: {[on] | [off]}
-expand: {[on] | [off]}
-explain [:filename]
-ext: {[on] | [off]}
-l: {[on] | [off]}
-outval: {[recover] | [fatal]}
-p: {[on] | [off]}
-r:classname
-repeat:N
-sa
-strip: {[all] | [none] | [ignorable]}
-t
-tree: {[tiny] | [linked]}
-T [:classname]
-TJ
-u
-val: {[strict] | [lax]}
-x:classname
-xi
-xmlversion: {[1.0] | [1.1]}
-?
Options specific to saxonb-xquery¶
-mr:classname
-o:filename
-pipe: {[push] | [pull]}
-projection: {[on] | [off]}
-s: {[file] | [URI]}
-wrap: {[on] | [off]}
SEE ALSO¶
saxonb-xslt (1), XQuery 1.0: An XML Query Language (W3C Recommendation).
This program is fully documented by the HTML documentation of Saxon, available in the libsaxon-java-doc Debian package.
AUTHOR¶
This manual page was written by Stefano Zacchiroli <zack@debian.org> for the Debian(TM) system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
COPYRIGHT¶
Copyright © 2008 Stefano Zacchiroli
February 2008 |