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.
Commonoptions-cr:classname
Specify a class to be used for processing collection URIs passed to the collection() function. The
class must implement net.sf.saxon.CollectionURIResolver.
-dtd: {[on] | [off]}
Enable or disable DTD validation. Default: off.
-expand: {[on] | [off]}
When validation is enabled, expand default values in validated documents. This option enables or
disables such an expansion. Default: on.
-explain [:filename]
Display an execution plan; the output is in XML format. If filename is not given it will be displayed
on standard output.
-ext: {[on] | [off]}
Enable or disable the ability to invoke external Java functions from query files and stylesheets.
Beware that enabling them is a potential security risk when processing untrusted files. Default: off.
-l: {[on] | [off]}
Keep (when on) or throw away (when off) line numbers in tress corresponding to source documents. When
kept, line numbers can be accessed using the function saxon:line-number(). Default: off.
-outval: {[recover] | [fatal]}
When validation is required, set whether validation errors are fatal (when "fatal" is passed) or if
they only trigger warnings (when "recover" is). Default: fatal.
-p: {[on] | [off]}
Enable or disable usage of the PTreeURIResolver. Saxon-SA only.
-r:classname
Specify a class to be used for resolving all URIs.
-repeat:N
Repeat the transformation N times. For benchmarking purposes.
-sa
Perform Schema-aware processing. Saxon-SA only.
-strip: {[all] | [none] | [ignorable]}
Specify whitespace stripping policy for source documents: strip all of them ("all"), strip none of
them ("none"), strip ignorable whitespace only ("ignorable"). Default: none.
-t
Display version, timing, and other debugging information on standard error.
-tree: {[tiny] | [linked]}
Select the implementation of the internal tree model: tiny tree model ("tiny") or linked tree model
("linked"). See the Saxon documentation for more information on the internal tree model. Default:
tiny.
-T [:classname]
Trace various aspect of the processing; an optional class name can be given to specify a user-chosen
tracer. The class must implement net.sf.saxon.trace.TraceListener. The default is a system supplied
tracer. This option implies -l.
-TJ
Enable tracing of external Java method invocation. See -ext.
-u
Force interpretation of source document names as URI. By default they are considered to be file
names, unless they start with "file:" or "http:".
-val: {[strict] | [lax]}
When validation is enabled, choose among "strict" or "lax" validation. Saxon-SA only.
-x:classname
Specify a class to be used as SAX parser for input documents. The class must implement either
org.xml.sax.Parser or org.xml.sax.XMLReader.
-xi
Apply XInclude processing to all input documents.
-xmlversion: {[1.0] | [1.1]}
Choose the XML version for processing input documents. "1.1" must be specified to process XML 1.1 and
Namespaces 1.1 constructs. Default: 1.0.
-?
Display a help message and exit.
Optionsspecifictosaxonb-xquery-mr:classname
Use the specified class as a ModuleURIResolver to resolve query module URIs. The class must implement
net.sf.saxon.query.ModuleURIResolver.
-o:filename
Send the query output to the specified filename. If not specified the output will be sent to standard
output. See also -wrap.
-pipe: {[push] | [pull]}
Internally, execute query in push or pull mode. Mainly for testing purposes. Push mode is usually
faster when intermediate tree are constructed in memory. Default: push.
-projection: {[on] | [off]}
Enable or disable document projection, i.e. the ability to throw away tree parts which will not be
accessed by a query. Saxon-SA only.
-s: {[file] | [URI]}
Read document input from the specified filename ("-" can be given to read from standard input). The
read document will be available to the query as the context node. -u affects how filename is
interpreted.
-wrap: {[on] | [off]}
Enable or disable wrapping of query result in a XML structure which makes explicit the kind of each
output node or atomic value. For example free-standing attributes will be wrapped in an explicit XML
element stating that they are attributes. When this is off, the query output will be wrapped only
using a document node; in such a setting is possible that output parts, such as free-standing
attributes, can´t be serialized. Default: off.