Re: FOP 0.20.5rc2 - how set base URL ?

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

Received on Monday, 7 April 2003 05:32:49 UTC