The following command-line options are recognised by xpt:
xpt
[-h] [-k] [-c cmd
] [-F] [-i infile
] [-I dir
] [-n] [-o outfile
] [-s cmd
] [-t stylesheet
] [-T pi-name
] [-f all-func
] [-P init-cmd
] [-D
name=
] [-x] [-v] [-V][=[value]]
cmd
enter command mode. Currently the following values are allowed:
process processing-instructions. this is the default value.
show version information. same as the
-V
.
name
[=value
]define variable name
optionally
with value value
.
all-func
register a single function for all selected XML elements. Usually needs -P option to get function installed.
use fancy XML output format for better readability.
show some help.
infile
read XML from infile
. If not
specified, standard input is assumed. If
infile
is explicitly specified as
-
(dash), the standard input is read.
dir
append dir
to list search
directories of xpt and embedded Python engine.
keep temporary files
do not execute external commands
outfile
send output to output
.
![]() | Note |
---|---|
needs extra explanation out how the output is created. read the code. |
init-cmd
issue init-cmd
command before
transforming selected elements. Most often a module is loaded
using this option. This option may be used more than once.
cmd
use XPath cmd
in while creating
output.
stylesheet
use XSLT stylesheet
in output
generation
pi-name
change name of processing-instruction target to
pi-name
. Default is
xpt
.
Show debug output. This option may be used more than once to increase the verbosity.
Be verbose.
Show version information.