Ulrich Mayring <[EMAIL PROTECTED]> wrote:
> I get this exception with fop:
> ... (xml): Could not set base URL for svg
> What is this URL and how can I set it?
You probably have an SVG embedded in you FO which
is generated on the fly, perhaps in a servlet. The
error message is from Batik which tries to create
a document reader for the SVG for navigation inside
the SVG, even though there is no separate SVG document.
I fixed this by inserting a line
org.apache.fop.configuration.Configuration.put("baseDir",
"file:///some/random/name");
before invoking the driver.
The URL is never read in my case, if you use cross
reference URLs in your SVG, like referencing fragments
or shaders, things might be more complicated.
HTH
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]