Re: FOP 0.20.5rc2 - how set base URL ?
Oleg Tkachenko <[email protected]> Mon, 07 Apr 2003 12:34:02 +0200
| Newsgroups | gmane.text.xml.xsl.general |
|---|---|
| Organization | Multiconn Technologies |
| Message-ID | <[email protected]> |
Koch, Anthony wrote:
> I'm using FOP 0.20.5rc2. When running within Tomcat, I am applying
> XSL:FO against XML.
> But the transformation fails to find the URL for an SVG reference
> I have.
>
> The error is:
> [ERROR] Error while creating area : Error with image URL:
> file(historyChart.svg) (The system cannot
> find the file specified) and no base URL is specified
See FAQ: http://xml.apache.org/fop/faq.html#servlet_baseDir
> <fo:external-graphic
> xmlns:svg="http://www.w3.org/2000/svg" src="file(historyChart.svg)"/>
Wrong, try just
<fo:external-graphic src="url('historyChart.svg')"/>
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel