Im setting up James Clarkes xt software (
http://www.blnz.com/xt/index.html) on REDHAT 8 so I can transform xml file using xtsl templates (it's uni work). I know that xt is a java based program and I haven't learned much java but I have successfully installed it (j2sdk-1_4_1_01-linux-i586.bin), and set the path in my .bashrc file to point to the java programs (java javac etc).
However I cant seem to get XT working, It wont run from the xt-20020426a-src/demo directory. My main concerns are A) how to set the java classpath (so I can put xt.jar there) or how to find out where this classpath points to, and b) which is also related to a, what does this following instructions meen (the instructions are from the xt readme notes
http://www.blnz.com/xt/xt-20020426a-src/index.html)
ps. i have a perl module XML::SAX installed which I have been using for other similar work.
---- from
http://www.blnz.com/xt/xt-20020426a-...tml-----------
o use XT, you need:
the XT distribution
an XML parser in Java that supports SAX 1 API, such as XP (which is, for your convenience, included in the distribution); you should choose a SAX parser that provides Locator information, otherwise you won't get any line numbers in error messages
Put XT.jar in your CLASSPATH, together with whatever is needed for your XML parser and with xml-apis.jar if the SAX API definitions aren't included with your XML parser. Then use the command:
java -Dcom.jclark.xsl.sax.parser=your-sax-driver com.jclark.xsl.sax.Driver source stylesheet [result] [name=value][...]
The name=value arguments are optional and specify parameter names and values; they can occur in any order with respect to the other arguments. They will be ignored unless the stylesheet contains a corresponding top-level xsl: param element. The value of the parameter will be of type string.
To find a SAX parser, XT first uses the value of the system property com.jclark.xsl.sax.parser; if this is not set it uses the value of the system property org.xml.sax.parser; if this is not set it uses the class com.jclark.xml.sax.CommentDriver