You have to define the xlink namespace or the parser doesn’t know what that namespace refers to.� You define it just like you defined the svg namespace, so your svg:svg line should probably be:

 

<svg:svg width=”3.1cm” height=”3.6cm” xmlns:svg=”http://www.w3.org/2000/svg” xmlns:xlink=”http://www.w3.org/1999/xlink”>

 

� (*Chris*)

 


From: Selber Jean-Fran�ois [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 8:55 am
To: [EMAIL PROTECTED]
Subject: embeded svg with <svg:image problem

 

Hello

 

I want to embed a svg in my fo code

but this svg has an image and it doesn't work

 

can someone help me? (see fop code)

thanks

jf

 

fop code:

<fo:instream-foreign-object>
     <svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="3.1cm" height="3.6cm">

 

 <svg:rect x="0" y="0" width="3cm" height="3.5cm" fill="black"></svg:rect>
 <svg:rect x="0.1cm" y="0.1cm" width="3cm" height="3.5cm" fill="black"></svg:rect>
 <svg:image x="1" y="1" width="2.9cm" height="3.4cm" xlink:href="" href="file:///C:\photo.jpg">file://C:\photo.jpg"/>

 

</svg:svg>

 

    </fo:instream-foreign-object>

 

error:
[Fatal Error] :162:122: The prefix "xlink" for attribute "xlink:href" is not bound.
FATAL ERROR: The prefix "xlink" for attribute "xlink:href" is not bound.

Reply via email to