Title: fo:external-graphic does not support SVG when src is an url
Hi Gunnar!
 
I debugged FOP source code and found that the error is an IOException thrown by Batik.
My IIS logged a http error 406.
The Mime type is okay. Don't forget: it works in "most" cases with Apache.
 
Regards,
Jo
 
-----Urspr�ngliche Nachricht-----
Von: Gunnar Liljas [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. November 2003 09:59
An: [EMAIL PROTECTED]
Betreff: Re: fo:external-graphic does not support SVG when src is an url

Make sure that the web server returns a correct content-type (MIME) for svg.
 
image/svg+xml if I remember correctly
 
/G
----- Original Message -----
Sent: Wednesday, November 12, 2003 9:05 PM
Subject: fo:external-graphic does not support SVG when src is an url

Hi!

I found a  problems when using urls instead of files for fo:external-graphic's src paramater.

<xsl:param name="imagebase">http://localhost:8080/img</xsl:param>
...
<fo:external-graphic height="15pt" width="180pt">
        <xsl:attribute name="src">url('<xsl:value-of select="$imagebase"/>/SomePics.svg')</xsl:attribute>
</fo:external-graphic>
OR
<fo:external-graphic height="15pt" width="180pt">
        <xsl:attribute name="src"><xsl:value-of select="$imagebase"/>/SomePics.svg</xsl:attribute>
</fo:external-graphic>

does not work for IIS at all.
It works in 95% of all cases with APACHE.
It work in 100%  of all cases with files.
I get no exception(s) and - no pictures.
Any ideas?

FOP is 0.20.5 distribution.

Regards,

Joachim

Reply via email to