[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: [solved] XSL-FO: Including SVG images
From: Antonio Fiol <fiol@xxxxxxxxxx>
Date: Fri, 05 Jul 2002 12:09:46 +0200
antonio fiol
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.