"Saif Khaja" <[EMAIL PROTECTED]> wrote:
> <fo:basic-link internal-destination="mark1">
> <svg:rect x="100" y="100" width="100" height="200"/>
> <fo:basic-link>
If you want to embed SVG data into a FO document, you have
to use a fo:instream-foreign-object.
Furthermore, i vaguely remember that you need a top level
svg:svg element.

Therefore, try:
   <fo:instream-foreign-object>
     <svg:svg width="10mm" height="20mm" viewBox="0 0 101 201">
      <svg:rect x="0" y="0" width="100" height="200"/>
     </svg:svg>
   </fo:instream-foreign-object>

I think it would be a good idea to try the embedded SVG
code in a SVG viewer first in order to see whether it works
and embed it only after you got it working. It may still be
tricky to manage the window/viewport issues, documentation
is very scarce.
Assistance to get your SVG working is more likely to be found
on other lists. If you use Batik as standalone viewer, you
could try batik-user.

J.Pietschmann

Reply via email to