-classpath
java jd.xml.xslt.Stylesheet demo.xml demo.xsl
The transformation is performed by calling the class jd.xml.xslt.Stylesheet
passing
an input xml document and a xsl document which defines the transformation rules.
The transformed document is directly written to the console.
-out
option
java jd.xml.xslt.Stylesheet -out demo.out demo.xml demo.xsl
and the output is written to the file demo.out
.
-param
option. The first
argument after -param
is the parameter name, the second a context free XPath
expression representing the value:
java jd.xml.xslt.Stylesheet -param filename 'demo' demo.xml demo.xsl
<?xml-stylesheet?>
instructions
(like demo.xml does) the xsl-file argument can be skipped:
java jd.xml.xslt.Stylesheet demo.xml
-parser
-option:
java jd.xml.xslt.Stylesheet -parserxml myxml.MySaxParser demo.xml
jd.xml.xslt.Stylesheet
with no arguments. A detailed description of the options can be found
here.