Are there any XSLT processing command line tools?

2019-01-17 05:26发布

I want to change an XML file to a modified XML file via an XSLT file and XSLT processing tool.

For example: xsltprocess.exe -src a.xml -dest b.xml -xslt c.xslt

Can anyone assist me?

8条回答
Animai°情兽
2楼-- · 2019-01-17 06:06

Microsoft has a simple command line tool that wraps their XML Parser - http://www.microsoft.com/en-us/download/details.aspx?id=21714.

As @Mathias said though, it only supports XSL 1.0 while Saxon supports XSL 2.0.

查看更多
Anthone
3楼-- · 2019-01-17 06:06

There are lots of XSLT 1.0 processors available, and a handful of XSLT 2.0 processors, and as far as I know every single one of them runs on Windows and can be called from the command line. If your problem is choosing between them, then you're going to have to tell us more about your requirements and constraints.

查看更多
来,给爷笑一个
4楼-- · 2019-01-17 06:08

If you are looking for an XSLT processor you can use Saxon: http://saxon.sourceforge.net/

You can see the command line options here: http://saxon.sourceforge.net/saxon6.5.1/using-xsl.html

查看更多
Bombasti
5楼-- · 2019-01-17 06:11
# xsltproc [options] stylesheet file

This program is the simplest way to use libxslt. http://xmlsoft.org/XSLT/xsltproc2.html

查看更多
爷的心禁止访问
6楼-- · 2019-01-17 06:11

You can find some XSLT engine wrappers, XSLer and XSLTransform (one in Delphi and one in .NET) with source code at https://github.com/zoomicon/tranXform

查看更多
姐就是有狂的资本
7楼-- · 2019-01-17 06:12

You can use AltovaXML XSLT 1.0/2.0 engine (also well-formedness and validity checking). There is free of charge community edition with direct (I mean without Java) command line interface e.g.:

AltovaXML.exe -xslt2 stylesheet.xsl -in input.xml -out output.xml

Check AltovaXML.chm help file for usage.

查看更多
登录 后发表回答