SGML for Windows NT: Setting up a free SGML/XML editing and publishing system on Windows/Cygwin | ||
---|---|---|
Prev | Chapter 14. Saxon, XT, Xalan: Java-based XSLT engines | Next |
The first test runs with these tools will also not be too exciting, but rest assured that it will work all the same if we later use "real" documents like DocBook XML documents.
Change to the directory that contains the test files that we created previously and run the following commands in your shell (the backslashes at the end of the lines denote continuation of the line - don't type them in):
~# java -cp "C:\Programs\java\xt.jar;C:\Programs\java\xp.jar" \ com.jclark.xsl.sax.Driver test.xml test.xsl > test.html |
~# java -cp "C:\Programs\java\xalan.jar;C:\Programs\java\xerces.jar" \ org.apache.xalan.xslt.Process -in test.xml -xsl test.xsl -out test.html |
~# java -cp "C:\Programs\java\saxon.jar;C:\Programs\java\saxon-fop.jar; \ C:\Programs\java\saxon-jdom.jar" com.icl.saxon.StyleSheet test.xml test.xsl \ -o test.html |
Note: Please note that java is not a Cygwin application. In all cases, the paths must be specified in DOS format, i.e. drive letter, backslash, and semicolon to separate entries.
View the resulting test.html file in your favourite browser. You should see a nicely formatted HTML representation of your XML document.