[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] What's the new Java (1.4) command-line for Xalan transformation processing?


Subject: Re: [xsl] What's the new Java (1.4) command-line for Xalan transformation processing?
From: Piotr Banski <bansp@xxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Feb 2003 00:15:58 +0100 (CET)

On Wed, 19 Feb 2003, William Reilly wrote:
> I've missed something in upgrading from Java 1.3.1 to Java 1.4 when it
> comes to using my familiar command-line Xalan:
>java org.apache.xalan.xslt.Process -IN in.xml -XSL myxsl.xsl -OUT out.xml
-PARAM recipe abc

> I understand Xalan and Xerces are now part of the Sun Java (J2SE)
> distribution, and that (in theory?) you don't need to separately
> install them, but I don't know where to go in all the Java packages to
> get a similar command-line utility.

Unless I misunderstand your question, the answer is: nothing's changed
about the command line. If you don't install a new version of Xalan, the
invocation above will run the version that comes with Java 1.4.

> 	http://xml.apache.org/xalan-j/commandline.html

What must have confused you is the fact that Java 1.4 has this 'endorsed
classes' mechanism that lets you override the installed classes -- if e.g.
you decide to install a newer Xalan package (which may be a good idea).
This is all described somewhere on Xalan-J pages.

(And if you decide to upgrade, be aware of the fact that the newest
official version of Xalan (2.4.1) has an ugly bug that mangles the output
if you use the -TS switch ('trace selection events'), so if you want it to
work, get a recent nightly build.)

Good luck,

  Piotr


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread