Hi Roman,
    I think the solution might be to create your StreamSource seperately

StreamSource ss = new StreamSource(xslFile);
ss.setSystemId(xslFile);
template = _transformerFactory.newTemplates(ss);

otherwise I think the systemID of your xslFile ends up being constructed
from classpath + xslFile location.
I dont think this will sove all your problems, coz then the
transformerFactory wont be able to find the compiled translet but hopefully
it should move you further down through your code!

hope it helps,

Paul.

-----Original Message-----
From: Roman Rytov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 9:54 PM
To: '[EMAIL PROTECTED]'
Subject: A problem of a beginner


Hi guys,
just today downloaded Xalan and everything looks nice but I get stupid
problem
A fragment of my code is


        File xslFile = new File("t1.xsl");
        template = _transformerFactory.newTemplates(new
StreamSource(xslFile));
        templateCash.addTemplate(requestName , template);
        transformer =  template.newTransformer();


on the lst line I get the exception
Compile errors:
  File "file:/D:/jdk1.3/lib/file:/D:/t1.xsl" not found.
I think it happens during processing of my XSL file. Should I configure my
TransformerFactory or something else? It's trying to take the file from
wrong location. I'm working on NT. May be file separator symbol?
Any ideas? It looks pretty stupid.
Roman

Reply via email to