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]]
cmdenter 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-funcregister 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.
infileread XML from infile. If not
specified, standard input is assumed. If
infile is explicitly specified as
- (dash), the standard input is read.
dirappend dir to list search
directories of xpt and embedded Python engine.
keep temporary files
do not execute external commands
outfilesend output to output.
![]() | Note |
|---|---|
needs extra explanation out how the output is created. read the code. |
init-cmdissue init-cmd command before
transforming selected elements. Most often a module is loaded
using this option. This option may be used more than once.
cmduse XPath cmd in while creating
output.
stylesheetuse XSLT stylesheet in output
generation
pi-namechange 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.