Hi Shane,
thanks, that seems to have fixed the problem of the imports. However, now
its trying to save the transformed XML file into a file that has a name
equal to the contents of the transformed xml file.
eg transformed output = "<html><body>Hi</body><html>"
I get an exception saying:
SystemId Unknown; Line 0; Column 0; File "<html><body>Hi</body><html>" not
found
any ideas on that?
all Im trying to do is:
translet.transform(XMLSource,new StreamResult(new File("test.htm")));
Perhaps its something to do with the xsl/xml files themselves?
does anyone have any simple ,working examples of xsl/xml files using
imports?
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.