Sorry, but I can't reproduce this with only the snippet here. No
exception on my machine with either 0.93 or 0.20.5. Please send
questions/problems like this to fop-users@xmlgraphics.apache.org and
always indicate which FOP version you use. Thanks.

On 01.03.2007 11:59:55 pedro wrote:
> 
> Hi all
> 
>    i try to use <fo:instream-foreign-object> to load an image but i get a
> java.lang.ClassCastException
>                                     at
> org.apache.batik.dom.svg.SVGOMDocument.getRootElement(Unknown Source)
> 
> 
> My xsl header
> 
>            <xsl:stylesheet version="1.0"
> xmlns:fo="http://www.w3.org/1999/XSL/Format";
>       xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>        xmlns:xs="http://www.w3.org/2001/XMLSchema";
>       xmlns:xlink="http://www.w3.org/1999/xlink";>
> 
> [code]
>                            <fo:instream-foreign-object>
>               <svg xmlns="http://www.w3.org/2000/svg"; width="20mm" 
> height="20mm"             
>                                                      xml:space="preserve">
>                               <svg viewBox="0 0 20 20" 
> preserveAspectRatio="none">
>                                       <image 
> xlink:href="file:c:/loghi/immagine.png" x="0" 
>                                                                               
>            
> y="0" width="20mm" height="20mm"/>
>                                                                            
>                                                               </svg>
>                                                                               
> </fo:instream-foreign-object>
> [/code]
> 
> 
> 
> What is wrong?
> 
> Thanks.



Jeremias Maerki

Reply via email to