Description xsltproc is a command line XSLT processor. It is used to apply XSL sheet on XML files.

Commands To get all options available for xsltproc, run

xsltproc --help

Apply XSL sheet on XML file:

xsltproc Data.xsl Data.xml > Data.output.txt

Passing string parameters into XSL sheet:

xsltproc --stringparam filename "my filename string" Data.xsl Data.xml > Data.output.txt

In Data.xsl, you can get the value of the filename parameter as follows: <xsl:value-of select="$filename"/>.