xsl-list
[Top] [All Lists]

RE: Where is Process in JDK 1.5?

2005-05-16 10:25:51
(IMHO) There is a bug in JDK 1.5 related to Xalan 2.6
command line.. java
com.sun.org.apache.xalan.internal.xslt.Process line
gives an error.. I don't remember the exact error, but
I think it was "main(String[] args) function is named
internally as _main(String[] args) .. This may be
checked with javap command..

Thi bug can be worked around easily by writing a
wrapper function for the class
com.sun.org.apache.xalan.internal.xslt.Process . I
remember this problem was raised by Wendell Piez few
days back..

Regards,
Mukul


--- Touchtel <omprakashv(_at_)touchtelindia(_dot_)net> wrote:
         Hi,
             The xerces and xalan packages are part
of JAXP which is a
standard package shipped along with jdk1.5.
Consequently, the package names
have changed and the xalan transformation process
can be invoked using the
command line

   %java
com.sun.org.apache.xalan.internal.xslt.Process -IN
a.xml -XSL
a.xsl -OUT a.htm

    I haven't personally worked with jdk1.5 yet but
Iam thinking the above
should work.

   Cheers,
   Omprakash.V


-----Original Message-----
From: Michael(_dot_)Giroux(_at_)Bull(_dot_)com
[mailto:Michael(_dot_)Giroux(_at_)Bull(_dot_)com]
Sent: Monday, May 16, 2005 9:14 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Where is Process in JDK 1.5?






Using JDK 1.4.2, I'm able to invoke xsl translation
from the command line
as follows:
java org.apache.xalan.xslt.Process -XSL my.xsl -IN
my.xml -OUT
myTranslated.xml

The same command fails w/ JDK 1.5:
Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/xalan/xslt/Process

Can anyone tell me how to invoke xsl translation
from command line using
JDK 1.5?

Thanks
Michael Giroux



--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--






--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




                
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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