sourCEntral - mobile manpages




4xslt — command-line tool for performing XSLT transformations on XML documents


4xslt [−h | −−help ] [−V | −−version ] [−v | −−validate ] [−i | −−ignore ] [−−media=MEDIA ] [−D | −−define=NAME=VALUE ] [−P | −−prefix=PREFIX=NSURI ] [−I | −−alt-sty-uri=URI ] [−o | −−outfile=FILE ] [−e | −−stacktract-on-error ] [−−noxinclude ] [−−trace ] [−−trace-file=FILE ] [−−reflex ] [−−compile ] [−−instant ] [−−chain ] [−−time ] [−−msg-prefix=STRING ] [−−msg-suffix=STRING ] [−−no-messages ] {source-uri } {stylesheet-uri }


The program follows the usual GNU command line syntax, with long options starting with two dashes (‘−’).
−h, −−help

Show detailed help message.

−V, −−version

Display version information and exit.

−v, −−validate

DTD validate the input file as it is being parsed.

−i, −−ignore

Ignore <?xml-stylesheet ...?> instructions.


Set media to honor in xml-stylesheet PIs.

−D, −−define=NAME=VALUE

Bind a top-level parameter.

−P, −−prefix=PREFIX=NSURI

Assign a namespace to a prefix used in a top-level parameter.

−I, −−alt-sty-path=PATH

Same as −−alt-sty-uri but uses OS path.


Define an add’l base URI for imports & includes.

−o, −−outfile=FILE

Direct transformation output to FILE (file will be overwritten if it exists).

−e, −−stacktrace-on-error

Display a stack trace when an error occurs.


Do not expand XIncludes in source document and stylesheet.


Send execution trace output to stderr or file set by −−trace-file.


Trace file for execution trace output when using −−trace.


Reflexive transform (the stylesheet is also the source document).


Compile an instant stylesheet. The result is written to stdout, unless −o is used.


The stylesheet is "instant" (compiled). Only one stylesheet can be specified with this option.


Chain the stylesheets (result of transforming with the first is the source document for transforming with the second, and so on). Without this option, each extra stylesheet is imported by the preceding one.


Display the elapsed transformation time on stderr.


Prepend string to xsl:message output.


Append string to xsl:message output.


Suppress xsl:message output and warnings.


The URI of the XML document to transform, or "−" to indicate standard input. If using −−reflex, it is also the stylesheet. If using −−compile, it is the stylesheet to compile.


The URI(s) of the stylesheet(s) to apply.


Raphael Bossek <bossekr AT debian DOT org>


$Revision: 1.1 $


Copyright © 2006 Raphael Bossek

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.