[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

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
xt command line
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.