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):
C:\user\myself>java -cp "C:\Programs\java\xt.jar;C:\Programs\java\xp.jar" \
com.jclark.xsl.sax.Driver test.xml test.xsl > test.html
|
C:\user\myself>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
|
C:\user\myself>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
|
View the resulting test.html file in
your favourite browser. You should see a nicely formatted HTML
representation of your XML document.