Hi

I am using Xalan 2.7.0 in the development of an application.

The application uses multiple XML files as input. 
The majority of these XML files are shipped in the applications jarfile. 
One XML file is put of the file system by the customer. 
In order to find the XML files I have written a simple class which implements 
the URIResolver interface.
I set this resolving both on the TransFomer object and the TransformerFactory 
object. 
I have foung that my URIResolver  object is only called when the input file to 
main Stylesheet is not in the jarfile.
When the input file is in the jarfile and I use the ClassLoader to reslove the 
resource my URIResolver is not called for the XML file on the local file system 
and it cannot be found.

here is the code I use to reslove the XML input file in the jar file:

StreamSource stream= new 
StreamSource(this.getClass().getClassLoader().getResourceAsStream(fileName));


Can anyone let me know why my URIResolver is not been called in this situation.

Please note 

It is called and works if I put the Input file on the local file and use the 
following code to reslove it:

StreamSource stream = new StreamSource(fileName);

best regards



Michael Kelly
[EMAIL PROTECTED]


Reply via email to