tldr/pages/osx/xsltproc.md
2016-01-08 09:38:59 +01:00

366 B

xsltproc

Transform XML with XSLT to produce output (usually HTML or XML).

  • Transform an XML file with a specific XSLT stylesheet:

xsltproc --output {{output.html}} {{stylesheet.xslt}} {{xmlfile.xml}}

  • Pass a value to a parameter in the stylesheet:

xsltproc --output {{output.html}} --stringparam {{name}} {{value}} {{stylesheet.xslt}} {{xmlfile.xml}}