I need a simple command line program to transform XML using an XSL Stylesheet [closed] I need a simple command line program to transform XML using an XSL Stylesheet [closed] xml xml

I need a simple command line program to transform XML using an XSL Stylesheet [closed]


Have you tried 'xsltproc'? It's probably already installed.

http://xmlsoft.org/XSLT/xsltproc2.html


I'd recommend Saxon, which can be run from the command line like so:

java -jar /path/to/saxon.jar xmlfile xslfile


If I assume correctly that you want to supply a stylesheet and an XML document then Xalan-J has a command line feature you can use to do this:

http://xml.apache.org/xalan-j/commandline.html

which can be invoked with:

java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out