Are there any XSLT processing command line tools?

WindowsCommand LineXslt

Windows Problem Overview


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?

Windows Solutions


Solution 1 - Windows

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

Solution 2 - Windows

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.

To run the convertor you downloaded from the given URL run this command

> msxsl.exe backEnd.xml inspectcode.xslt -o backEnd.html

This will tranform the xml file using the xslt file into the output file in html format

Solution 3 - Windows

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.

Solution 4 - Windows

# xsltproc [options] stylesheet file

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

Solution 5 - Windows

ftp://xmlsoft.org/libxml2/

The Win32 directory has a lot of goodies, next to precompiled binaries for use on commandline.

I'm not linking to the directory directly, since the root of the project has a rich set of tools for - good for everyone's flavor of the month :)

Solution 6 - Windows

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.

Solution 7 - Windows

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

Solution 8 - Windows

XQSharp includes an XSLT 2.0 command line processor. See the Xslt Command Line Reference documentation for details.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionsjuuView Question on Stackoverflow
Solution 1 - WindowsMathias SchwarzView Answer on Stackoverflow
Solution 2 - WindowsstudgeekView Answer on Stackoverflow
Solution 3 - WindowsGrzegorz SzpetkowskiView Answer on Stackoverflow
Solution 4 - WindowsathanassisView Answer on Stackoverflow
Solution 5 - WindowsOldskoolOrionView Answer on Stackoverflow
Solution 6 - WindowsMichael KayView Answer on Stackoverflow
Solution 7 - WindowsGeorge BirbilisView Answer on Stackoverflow
Solution 8 - WindowsTimView Answer on Stackoverflow