Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cant compile XSTLInputSource

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone, I will use TransformerFactoryImpl for XSTL conversions.

Tony
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic