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.


-- 
View this message in context: 
http://www.nabble.com/%3Cfo%3Ainstream-foreign-object%3E-tf3326242.html#a9247553
Sent from the FOP - Dev mailing list archive at Nabble.com.

Reply via email to