通过linux shell进行XSLT 2.0转换

Alp*_*Alp 14 java xslt shell jar saxon

我想通过使用命令行执行来执行XSLT 2.0转换.我听说我可以通过shell命令使用Saxon库java -jar sax.jar -input foo.xml -xsl foo.xsl -output bar.xml.有谁知道我到底能达到那个目标?

顺便说一句,我不仅限于Java.任何其他shell解决方案都可以.

Mar*_*nen 11

Saxon的文档在线:http://www.saxonica.com/documentation/# ! using-xsl/ commandline.所以你需要java -jar saxon9he.jar -xsl:foo.xsl -s:foo.xml -o:bar.xml.

  • 非常感谢.我也发现了这个:http://manpages.ubuntu.com/manpages/oneiric/man1/saxonb-xslt.1.html也不错,或者你更喜欢什么? (3认同)