permaculture playing cards*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Cant compile  XSTLInputSource" Watch "Cant compile  XSTLInputSource" New topic
Author

Cant compile XSTLInputSource

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
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.

Tony
Balaji Loganathan
author and deputy
Bartender

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
javax.xml.transform.Source
org.apache.xalan.processor.TransformerFactoryImpl or
org.apache.xalan.processor.TransformerFactory
javax.xml.transform.Transformer

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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
As an experiment I did a search for XSTLInputSource on google - no hit
Then I tried XSLTInputSource - lots of hits
XSLT not XSTL
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.
Bill
Tony Evans
Ranch Hand

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

Tony
 
 
subject: Cant compile XSTLInputSource
 
Similar Threads
HELP! Xalan/Tomcat/TransformerFactoryConfigurationError
Transformer problem
Cant find org.w3c.dom classes
External 3rd party classes
Question on XSLTInputSource and NetBeans IDE 3.5.1