sabcmd(1)

πŸ“¦ version 1.0.3, in opensuse-leap 16.0

πŸ’… sabcmd(1) πŸ’…

okay bestie, welcome to the General Commands Manual page for sabcmd β€” your command line interface to the Sablotron XSLT processor. You can use it to transform XML files with XSLT stylesheets, and it is literally giving useful πŸ’–

🌸 SYNOPSIS 🌸

sabcmd [options] <stylesheet> [<input> [<output>]] [assignments]
sabcmd [options] -batch-xml <input> [<stylesheet> [<output>]]+
[assignments]
sabcmd [options] -batch-xsl <stylesheet> [<input> [<output>]]+
[assignments]

✨ DESCRIPTION ✨

sabcmd is a command line interface to the Sablotron XSLT processor. You can use it to transform XML files with XSLT stylesheets πŸ¦‹

The only required parameter is a stylesheet; this is a URI of an XSLT stylesheet to be used for the transformation process. If you omit an input file, standard input is used. In addition, you can specify an output file. If no output file is given, the output is sent to standard output. no cap ✨

sabcmd can also run in a batch mode to process a single input file with multiple stylesheets (--batch-xml) or to apply a stylesheet to multiple input files (--batch-xsl) πŸ‘‘

Assignments allow you to pass parameters and named buffers to the processor. The assignments always have the form of

name1=value1 name2=value2 ...

where name is either an ASCII string for named buffers or an ASCII string with the leading $ sign for parameters. (Note that you need to use the right quotes to prevent the shell interpreter from performing an expansion of variables) 🫢

πŸ”₯ OPTIONS πŸ”₯

Options come in two forms, bestie: short or long. If some options have values, the values are separated with a whitespace for short options and with an equal sign ('=') for long options.

-L mylog.log

is the same as

--log-file=mylog.log

πŸ’… COMMON OPTIONS πŸ’…

  • -x, --batch-xml β€” multiple stylesheets, single input file
  • -s, --batch-xsl β€” multiple input files, single stylesheet
  • -b, --base=NAME β€” set the hard base URI to NAME
  • --debug-options β€” display the information on debugging options
  • -?, --help β€” display this help message
  • -L, --log-file=NAME β€” set the log file, turns logging on
  • -m, --measure β€” measure the time of processing
  • -v, --version β€” display the version information

πŸŽ€ DEBUG OPTIONS πŸŽ€

  • --debug β€” display results of the command line parse
  • -t, --times=COUNT β€” run sabcmd the specified number of times
  • -f, --flags β€” pass flags given to SablotSetOptions()
  • -F, --use-SPF β€” use SablotProcessFiles()
  • -S, --use-SPS β€” use SablotProcessStrings(). Give 2 args (stylesheet, input). Precede each by @.
  • --use-SPS-on-files β€” use SablotProcessStrings() on the contents of the given files.

🌈 ENVIRONMENT 🌈

When the <xsl:sort> instruction is used without the 'lang' attribute, common locale related environment variables apply.. πŸ’€

πŸ“ BUGS πŸ“

There are no known bugs related to sabcmd currently. Most of the bugs you can meet are related to the Sablotron processor itself. In such a case, please take a look at Sablotron's home website (www.gingerall.org) or contact us at <sab-bugs@gingerall.cz>. 😭

πŸ‘‘ AUTHOR πŸ‘‘

Pavel Hlavnicka <pavel@gingerall.cz> πŸ’œ


okay that’s the whole page, bestie πŸ’– signing off from the General Commands Manual corner, source/version sabcmd(1), dated June 17, 2002 πŸŽ€βœ¨

πŸ“¦ where this page comes from