You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by pedro <pe...@libero.it> on 2007/03/01 11:59:55 UTC
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.
Re:
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
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