Saxon installation

Go to
http://saxon.sourceforge.net/
and download saxon-B 9.1 Java file (2.0 Mbytes)
Unzip the contents of the file to the directory D:\Saxon9

Open Control Panel and
System, Advanced, Environment variables
Edit CLASSPATH by adding
;D:\Saxon9\saxon9.jar

Save changes. This you can do when you have administration rights to the workstation. However, you have no access to edit environment variables in some classrooms, therefore you can change the classpath only for that session. Open the command window and type

set CLASSPATH=%classpath%;D:\Saxon9\saxon9.jar

Copy your xml and xslt files to the Saxon9 directory. All files need to be in this same directory.
Remember that Java and Saxon are case-sensitive.

Open Command prompt. Type:

D:\temp>cd..
D:\>cd Saxon9
D:\Saxon9>java -jar saxon9.jar -o personsOut.xml persons.xml persons.xslt

Where persons.xml is the source file and persons.xslt the transformation. personsout.xml is the output, the results of the processing.

Try to open this file in a browser.

| HOME | SYLLABUS | CALENDAR AND EXERCISES |

Created by: Jaana Holvikivi
Updated: 20.1.2010