[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|