You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Unger, Joachim" <Jo...@softwareag.com> on 2003/11/12 21:05:59 UTC

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

Re: fo:external-graphic does not support SVG when src is an url

Posted by Gunnar Liljas <gu...@leon.se>.
fo:external-graphic does not support SVG when src is an urlMake sure that the web server returns a correct content-type (MIME) for svg.

image/svg+xml if I remember correctly

/G
  ----- Original Message ----- 
  From: Unger, Joachim 
  To: fop-user@xml.apache.org 
  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 

RE: external-graphic does not support SVG when src is an url

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Unger, Joachim [mailto:Joachim.Unger@softwareag.com]

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

What kind of problems exactly? The image does not get picked up or what?

<snip/>

> It works in 95% of all cases with APACHE.
> It work in 100%  of all cases with files.

What exactly do you mean by this? Is referencing pictures on the APACHE
website working, while the mentioned URL is not? The problem, in that case,
could be that your localhost is not serving the pictures at the expected
place...

> I get no exception(s) and - no pictures.

No exceptions... Normally, when an image is not found, at least some message
should show up, indicating that the URL is pointing to an invalid location.
( sth like "Error while rendering area..." )

Do you run FOP from the command line? If so, can you repeat the rendering
with the '-d' option to see if any indication is given?


TIA!

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org