<html><head><link rel=StyleSheet href='api-content.css' TYPE='text/css' MEDIA='screen'><title>sabcmd</title> <script> function navToEntry(entry) { window.location.href='api-' + entry + '.html'; } function navToGroup(group) { var f = parent.frames['toc-container']; if (!f) window.open ('sparse-toc.html#' + group, 'toc_container'); else { if (f.location.href.search('abc') != -1) f.location.href = 'sparse-toc.html#' + group; else f.location.hash = group; } } </script> </head><body bgcolor='white'> <!-- -- HEADS UP! This page was *GENERATED* by APIDOC, -- DO NOT EDIT THIS FILE BY HAND! -- See http://www.mozilla.org/projects/apidoc for information on APIDOC -- The original source file was sablot.xml --> <h1 class='title'>Sablotron Guide and Reference</h1> <center><table class='api-entry' width='100%' cellspacing='0'border='1' cellpadding='10'> <tr><td class='entry-heading'> <table class='entry-heading-table' width='100%' cellpadding='5'cellspacing='0'><tr> <td class='entry-title' valign='center'><font size='+5'>sabcmd</font></td> <td class='entry-type' align='center' width='25%'>.General</td> </tr></table> </td></tr> <tr><td class='entry-summary'> <h4 class='entry-subhead'>Summary</h4> sabcmd is a command line interface to Sablotron library. </td></tr> <tr><td class='entry-syntax'> <h4 class='entry-subhead'>Syntax</h4><pre> sabcmd [options] <stylesheet> [<input> [<output>]] [assignments] sabcmd [options] -batch-xml <input> [<stylesheet> [<output>]]+ [assignments] sabcmd [options] -batch-xsl <stylesheet> [<input> [<output>]]+ [assignments] </pre> </td></tr> <tr><td class='entry-description'> <h4 class='entry-subhead'>Description</h4> <b>sabcmd</b> is a command line interface to Sablotron XSLT processor. You can use is to transform XML files with XSLT stylesheets. <P> 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, the standard input is used. In addition, you can specify an output file. If no output file is given, the output is sent to the standard output. <P> sabcmd can also run in a batch mode to process single input file with multiple stylesheets (--batch-xml) or to apply a stylesheet to multiple input files (--batch-xsl). <P><b>Assignments</b> allow to pass parameters and named buffers to the processor. The assignments have always the form of <code>name1=value1 name2=value2 ...</code> 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). <P><b>OPTIONS</b><BR> Option can be of two forms - short or long. If some options have values, the values are separated with a whitespace for short options and with a equal sign ('=') for long options. <code>-L mylog.log</code> is the same as <code>--log-file=mylog.log</code><P><b>COMMON OPTIONS</b><BR><code>-x, --batch-xml</code> - multiple stylesheets, single input file <BR><code>-s, --batch-xsl</code> - multiple input files, single stylesheet <BR><code>-b, --base=NAME</code> - set the hard base URI to NAME <BR><code>--debug-options</code> - display the information on debugging options <BR><code>-?, --help</code> - display this help message <BR><code>-L, --log-file=NAME</code> - set the log file, turns logging on <BR><code>-m, --measure</code> - measure the time of processing <BR><code>-v, --version</code> - display the version information <P><b>DEBUG OPTIONS</b><BR><code>--debug</code> - display results of the command line parse <BR><code>-t, --times=COUNT</code> - run sabcmd the specified number of times <BR><code>-f, --flags</code> - pass flags given to SablotSetOptions() <BR><code>-F, --use-SPF</code> - use SablotProcessFiles() <BR><code>-S, --use-SPS</code> - use SablotProcessStrings(). Give 2 args (stylesheet, input). Precede each by @. <BR><code>--use-SPS-on-files</code> - use SablotProcessStrings() on the contents of the given files. <P><b>ENVIRONMENT</b><BR> When the <b>xsl:sort</b> instruction is used without the 'lang' attribute, common locale related environment variables apply.. </td></tr> <tr><td class='entry-seealso'> <h4 class='entry-subhead'>See Also</h4> <table class='seealso-table'> <tr class='seealso-groups'><td>Groups</td> <td>[ <a href='javascript:navToGroup("GROUP_.General")'>.General</a> ]</td></tr> </table> </td></tr> </table></center><br> © 2002-2003 Ginger Alliance<BR><i>revision 03-06-30</i><BR> <center>This page was generated by <a href='http://www.mozilla.org/projects/apidoc' target='other_window'><b>APIDOC</b></a></center> </body></html>