Re: [xsl] [solved] XSL-FO: Including SVG images

Subject: Re: [xsl] [solved] XSL-FO: Including SVG images
From: Antonio Fiol <fiol@xxxxxxxxxx>
Date: Fri, 05 Jul 2002 12:09:46 +0200
Antonio Fiol wrote:

<xsl:variable name="url">http://......svg...</xsl:variable>
<fo:block>
<fo:instream-foreign-object>
   <xsl:copy-of select="document($url)" />
</fo:instream-foreign-object>
</fo:block>

Hello again,

Sorry for replying to myself, but I'd like to add the following information:

I have just tried to add width and height attributes to fo:instream-foreign-object, and more space is reserved for the graphic, bue exactly the same portion is rendered.


Sorry again. I solved the problem.

The problem was not on the XSL but on the SVG. It did not contain width and height attributes and batik or fop took some (maybe wrong) defaults. The problem about missing elements was due to a transparency issue. I should have suspected when I saw

[ERROR] ...(something about feComposite)...

What I did was:
- Adding width and height attributes to <svg/>.
- Adding a <g transform="scale(0.5)" /> because the image was far too big.
- Emptying the <filter/> element, keeping its attributes, so that batik does not complain when it finds references to it.



Thank you all anyway. This is the most useful mailing list I ever subscribed.




Antonio Fiol



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread