W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2003

Re: FOP 0.20.5rc2 - how set base URL ?

From: Oleg Tkachenko <olegt@multiconn.com>
Date: Mon, 07 Apr 2003 12:34:02 +0200
Message-ID: <3E91541A.5060707@multiconn.com>
To: "Koch, Anthony" <Anthony.Koch@cognos.com>
CC: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT