Re: [FreeMarker-user] freemarker xml/xslt functions
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
|
From: Daniel D. <dd...@fr...> - 2005-12-23 07:13:48
|
Friday, December 23, 2005, 3:45:43 AM, Russell Simpkins wrote: >>Did you tried with a full URI, like "file:/some/other/dir/file.xml"? > > Yes. full url did not work either. And it doesn't have any cause exception that tell why exactly did it failed? Like, file not found, security error... >>Relative URL-s have to be resolved relatively to something, so if the >>main document has no URL, because it comes from an InputStream... you >>see. When I have this issue with SAX parsers, I used to specify a fake >>System ID, like "file:/the/base/directory/__java.io.InputStream__". > > Do you have an example? It's only for SAX parsing, as I said (so I don't know, at least out of my head, how to apply the same trick to XSLT). There it can be done because the org.xml.sax.InputSource, that you pass to SAXParser.parse(InputSource, DefaultHandler), has a setSystemId(String) method. So you can set any fake URL there. -- Best regards, Daniel Dekany |