How To Run XSLT 2.0 Stylesheets With Eclipse?
How To Run XSLT 2.0 Stylesheets With Eclipse?
1
5. Click on Java Processors and then click on Add button in the right hand side window
pane- a separate window will open as shown below
6. Change the processor in Processor Type drop down box to Saxon (XSLT 2.0)
7. Click on Add External JARs button
8. Add the Saxon jar files (you were asked to save them at an earlier stage of this
tutorial). Click OK
9. Set Saxon as default XSLT processor by choosing it as shown below
2
How to run XSLT 2.0 stylesheets witout Eclipse?
Run Saxon at command line/Terminal (for those who do not wish to use Eclipse)
You must have Java installed on your machine!
1. You will need Saxon parser; it has been supplied as a part of the zipped file.
2. Unzip the archive, the file you need is saxon9he.jar--- place this jar file in the
same directory as input XML file and XSLT file.
Saxon can perform both XSLT 1.0 and 2.0 transformations!
XSLT 1.0/2.0 transformations:
java jar saxon9he.jar ---o :output.html input.xml file.xsl
assuming output is an html file, if it is an xml file use the following command---
java jar saxon9he.jar ---o :output.xml input.xml file.xsl