[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
invoking XT from the command line (was RE: a newbie question)
Subject: invoking XT from the command line (was RE: a newbie question) From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Thu, 4 Nov 1999 16:51:35 -0700 |
> 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 -> |
---|---|---|
Re: JavaScript In Cocoon, Stephen Yearl | Thread | Re: invoking XT from the command li, TaNiA |
Re: JavaScript In Cocoon, Duane Nickull | Date | RE: Accessing the XML declaration, , Mike Brown |
Month |