Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've received a great answer about sorting XML - I need to use XSLT. But how do I actually do that? What software is required?

What command or application do I need to start to get a "converted" XML output file, given that I've got an XML file and an XSLT file as input?

I don't have any development environment installed; this is a regular office computer with WinXP+IE7.

Update:
With help from this site, I created a small package that I want to share: XML-Sorter_v0.3.zip

share|improve this question

2 Answers 2

up vote 5 down vote accepted

First decide whether you want to use XSLT 1.0 or 2.0. XSLT 2.0 is a much richer language, and the only reason for preferring XSLT 1.0 is that it's supported in a wider range of environments (for example, in the browser).

Then decide what XSLT processor you want to use. There's a wide choice for XSLT 1.0; a rather narrower choice for XSLT 2.0.

Then look in the documentation for that XSLT processor to find out how to run it.

Given that you seem to be OK with running the transformation from the Windows command line, I would recommend using Saxon-HE, which you can get from http://saxon.sf.net/. You will need to install Java, and then you can run Saxon.  The "saxonica.com" site, which originally hosted the documentation, has become unavailable.  The documentation (or at least some of it) seems to be archived on the Wayback Machine.

If you prefer a simple GUI interface, consider "Kernow for Saxon".

If you want a development environment with a nice editor and debugger, you will have to pay for it, but Stylus Studio and oXygen are both good value, and both give you a choice of XSLT engines.

share|improve this answer
    
Installing a development suite seems like overkill, but I've just downloaded the saxon jar file. That seems to do the trick - at least it generates an output file! Whether that file is correct, is not part of my question here. Thanks!! –  Torben Gundtofte-Bruun Nov 14 '11 at 15:49
    
The commandline documentation link is no longer valid. –  fixer1234 Jun 17 at 4:50
1  
@fixer1234: I took a stab at it.  (The Wayback Machine is a GOOD THING.) –  G-Man Jun 17 at 6:52

An XSLT Processor like Xalan-J for a command line solution. For a GUI editor/debugger you can use Eclipse, a tutorial here.

Edit: A fully web-based solution found here

share|improve this answer
    
The web-based solution link was a nice edit. –  Robino Mar 6 at 15:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.