Monday, September 24, 2007

Using Saxon to Transform XML with XSL stylesheets

While you can just drop XML into Internet Explorer, the MSXML v3 parses IE 6 uses is really quite awful. With Firefox, I couldn't figure out how to view the outputted text.

  1. Download saxon8.jar
  2. Make sure Java is installed (I think the JRE will work fine)
  3. Create an XML file
  4. Create an XSL file
  5. Run saxon like so from the directory that saxon8.jar is in:
    java -jar saxon8.jar xmlxslt\test.xml xmlxslt\test.xsl

No comments:

Labels

Blog Archive

Contributors