Subject: Re: invoking XT from the command line (was RE: a newbie question) From: "TaNiA" <tania@xxxxxxxxxxxxxx> Date: Fri, 5 Nov 1999 10:20:18 +0800 |
Dear Mike, Tom and Barton, Thanks heaps for your help!!!!! I finally got XT working. I had to do this: java -cp ../tmp/xt.jar:../tmp/xp.jar:../tmp/sax.jar com.jclark.xsl.sax.Driver test2.xml test2.xsl output.html and the command java com.jclark.xsl.sax.Driver test2.xml test2.xsl output.html worked fine as long as the CLASSPATH was set properly. I really appreciate all your help. Many thanks again, a very grateful me, tania ----- Original Message ----- From: Mike Brown <mbrown@xxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxx> Cc: <tania@xxxxxxxxxxxxxx> Sent: Friday, November 05, 1999 7:51 AM Subject: invoking XT from the command line (was RE: a newbie question) > java -Dcom.jclark.xsl.sax.parser=your-sax-driver com.jclark.xsl.sax.Driver source stylesheet result Do not use the above command line as-is. If you are using XP for your parser, you don't need to have the -Dcom.jclark.xsl.sax.parser=your-sax-driver argument on the command line. This is sufficient: java com.jclark.xsl.sax.Driver MySource.xml MyStylesheet.xsl In order for this to work, you need: . a java interpreter (which it sounds like you have), . MySource.xml and MyStylesheet.xsl . the following in your classpath: xt.jar sax.jar xp.jar and the core Java classes (classes.zip) If you are having trouble setting the appropriate classpath in your environment, you can also put it on the command line. You said you're on a UNIX system, so the following should work. Replace /path/to with the appropriate, explicit paths to the .zip and .jar files you need. java -classpath /path/to/jdk/lib/classes.zip:/path/to/xt/xt.jar:/path/to/xt/sax.jar:/path/to /xp.jar com.jclark.xsl.sax.Driver MySource.xml MyStylesheet.xsl The same thing will work on MS-DOS if you reverse the slashes and use semicolons instead of colons as separators in the classpath argument. There are some more examples under the "How to use XT" heading of Chapter 14 of the XML Bible: XSL Transformations, at http://metalab.unc.edu/xml/books/bible/updates/14.html and on Slide 272/Page 91 ("Invoking XT") in the Crane Softwrights' Practical Transformation Using XSLT and XPath free preview download at http://www.cranesoftwrights.com/training/index.htm#ptux XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
invoking XT from the command line (, Mike Brown | Thread | New XT release (19991105), James Clark |
RE: Accessing the XML declaration, , Mike Brown | Date | Re: XT and iso-8859-2 encoding ?, James Clark |
Month |