File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XALAN Imports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XALAN Imports" Watch "XALAN Imports" New topic

XALAN Imports

Marvin Monk

Joined: Dec 03, 2001
Posts: 8
Thanks to Gayathri Prasad and Balaji Logan for telling me about using XALAN for dynamic XSLT transformations of XML.
My problem now is getting XALAN to work.
The code in the referenced OnJava article begins with the following imports:
import org.apache.xalan.xslt.XSLTProcessor;
import org.apache.xalan.xslt.XSLTEngineImpl;
I have downloaded Xalan-j_2_5_1, and moved xalan.jar, xercesImpl.jar, and xml-apis.jar to my
<JAVA_HOME>/lib/endorsed/ directory.
I am using j2sdk1.4.1_01.
My compiler cannot find the imports. When I examine the jar files, I can't find them either...the only similar names in xalan.jar are org.apache.xalan.xslt.EnvironmentCheck.class and org.apache.xalan.xsltProcess.class
Possibly this post belongs in the "Java Newbie" section??
cyril vidal
Ranch Hand

Joined: Jul 02, 2003
Posts: 247
Hi Marvin,
org.apache.xalan.xslt.XSLTProcessor belongs to Xalan-Java 1 that is no more supported...
you have downloaded xalan version 2 with different interfaces!!

SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287
I agree. Here's the link:
subject: XALAN Imports
It's not a secret anymore!