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 Cant compile  XSTLInputSource 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 "Cant compile  XSTLInputSource" Watch "Cant compile  XSTLInputSource" New topic

Cant compile XSTLInputSource

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 595
I am running an example of an parsing a XML Stylesheet.

The code asks me to import org.apache.xalan.xslt.*;

The problem is my xalan.jar does not contain the XSTLInputSource.class file.
I downloaded another xalan.jar file from apache I unpacked it to find that it also did not contain the XSTLInputSource.class file.

Where can I find this class. Has it been replaced with another java class.

Thanks for any help.

Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
I guess you are trying to use an deprecated & deleted method of xalan, you can acheive the same function by using
org.apache.xalan.processor.TransformerFactoryImpl or

Some one please correct me if i'm wrong.
[ May 14, 2004: Message edited by: Balaji Loganathan ]

Spritle Software Blogs
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
As an experiment I did a search for XSTLInputSource on google - no hit
Then I tried XSLTInputSource - lots of hits
But - they appear old - one copyright is 2000. So it looks like Balaji is right.
I suspect that the generalized Source interface in the javax.xml.transform package (Java 1.4sdk) and the implementations in DOMSource, SAXSource and StreamSource have replaced XSLTInputSource. There was a big effort at rationalization of a bunch of confusing XML toolkits.
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 595
Thanks everyone, I will use TransformerFactoryImpl for XSTL conversions.

I agree. Here's the link:
subject: Cant compile XSTLInputSource
It's not a secret anymore!