xsl-list
[Top] [All Lists]

RE: What's the new Java (1.4) command-line for Xalan transformation processing?

2003-02-20 10:36:52
Piotr Banski (helpfully) wrote:
the answer is: nothing's changed 
about the command line.
 
Thank you very much for your reply. Evidently I had some confusion in my 
working on a few different systems.  I appreciate the help.
 
Java 1.4 has this 'endorsed 
classes' mechanism that lets you override the installed classes 
...This is all described somewhere on Xalan-J pages
 
Your tip on endorsed classes and endorsed directories was for me very helpful 
and enlightening.
I'd been aware of that, but entirely un-knowing about how it worked.  
 
I did (eventually--see URLs list below) download Xalan 2.4.1, put the jars in 
the right directory, and the '-V' version confirmed Java had picked it up. 
Thanks.
----------------------------------------------------
C:\jakarta-tomcat-4.0.3\webapps\ROOT\iaddev> java org.apache.xalan.xslt.Process 
-V
Xalan Version Xalan Java 2.4.1, <<<<<<<
Error: No stylesheet or input xml is specified. Run this command without any 
option for usage instructions.
C:\jakarta-tomcat-4.0.3\webapps\ROOT\iaddev>
----------------------------------------------------
 
Best regards,
William Reilly
wreilly(_at_)digitas(_dot_)com
Boston, Massachusetts U.S.A.
 
Here are some URLs I found with info on How To use the Endorsed directory and 
classes. 
(Note: mostly from java.sun.com's updated tutorials; xml.apache.org Xalan pages 
mostly refers to JDK1.3 info still):
 
=== ENDORSED CLASSES / DIRECTORIES ==========================================
 
High level statement...
"Endorsed Standards Override Mechanism"
http://java.sun.com/j2se/1.4/docs/guide/standards/index.html
 
 
This page (about org.apache.xalan.xslt.Process) has link to next page on how to 
upgrade your Xalan past j2sdk1.4 version.
Transforming from the Command Line with Xalan (The J2EETM Tutorial Addendum )
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPXSLT7.html
 
How To place newer Xalan (and JAXP) jars to get Sun's j2sdk1.4 to recognize 
them ("/jre/lib/endorsed/(jars)")
Compiling and Running the Program  (The J2EETM Tutorial Addendum )
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX4.html#64274
 
 
 
This page (about the Translets) has link to similar page (next one) on how to 
upgrade your Xalan past j2sdk1.4 version.
Transforming from the Command Line (XSLTC) (The Java Web Services Tutorial)
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPXSLT8.html
 
(similar info, basically) How To place newer Xalan (and JAXP) jars to get 
Sun's j2sdk1.4 to recognize them ("/jre/lib/endorsed/(jars)")
Compiling and Running the Program (The Java Web Services Tutorial)
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPSAX4.html#64274
 
 
Miscellaneous:
JavaTM API for XML (1.2) Processing Release Notes - (Summer 2002)
Identifying the JAR Files (lists the 6 jars)
http://java.sun.com/xml/docs/summer02/jaxp/ReleaseNotes.html#identifying
 
API for org.apache.xalan.xslt.Process
http://xml.apache.org/xalan-j/apidocs/org/apache/xalan/xslt/Process.html
 
Xalan-Java 2 Samples - Validate (the other thing I want to get reliably working 
 :>)
http://xml.apache.org/xalan-j/samples.html#validate
==============================================================

        -----Original Message----- 
        From: Piotr Banski 
[mailto:bansp(_at_)venus(_dot_)ci(_dot_)uw(_dot_)edu(_dot_)pl] 
        Sent: Wed 2/19/2003 6:15 PM 
        To: William Reilly 
        Cc: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com 
        Subject: Re: [xsl] What's the new Java (1.4) command-line for Xalan 
transformation processing?
        
        

        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



<Prev in Thread] Current Thread [Next in Thread>