• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Cant compile XSTLInputSource

 
Ranch Hand
Posts: 635
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
 
author and deputy
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 ]
 
Author and all-around good cowpoke
Posts: 13078
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: 635
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone, I will use TransformerFactoryImpl for XSTL conversions.

Tony
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic