[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [solved] XSL-FO: Including SVG images
Antonio Fiol wrote:
Hello again,<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> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|