Thanks, this fixed the problem.

On the compiler problem:
Im using the versions downloaded from the website.

When trying the following code

****************
Source xslSource = new StreamSource(new File(stylesheet));
File a = new File(stylesheet);
xslSource.setSystemId(a);

***************
I get this message:

compile:
    [javac] Compiling 3 source files to D:\res\build\classes
    [javac]
D:\res\src\com\sabre\res\application\fwk\presentation\XSLTCGenerator.java:13
8: setSystemId                          (java.lang.String) in 
javax.xml.transform.Source cannot be
applied to (java.io.File)
    [javac]             xslSource.setSystemId(a);
    [javac]                      ^
    [javac] 1 error


thanks,

Paul.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 6:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems finding imported XSL files


Perhaps that's because you're using local path/filenames instead of URI's,
which the JAXP spec requires.  (a common problem)

Try something like:
xslSource.setSystemId("file:///d:/blah.xsl");

And re: the compiler error: if this still happens, please send a full
stacktrace so we can debug it.  This should work just fine.

- Shane

--- "Paul O'Neill" <[EMAIL PROTECTED]> ----
Hi Scott,
     perhaps the problem is to do with the way I am setting the SystemId?
at the moment I am setting it using a String:

Source xslSource = new StreamSource(new File("d:/blah.xsl");
xslSource.setSystemId("d:/blah.xsl");

I've tried using setSystemId(java.io.File f) as it says in the API but this
returns a compiler error?

thanks,

Paul.


Reply via email to