The second example is not valid.
You cannot simply place some piece of svg inside fo. SVG can only be used in an instream-foreign-object and the xml inside that fo object must be valid for svg.

As SVG cannot link internally in the fo document then you cannot do it with svg.

On 2002.03.22 03:29 Saif Khaja wrote:

I was trying to set a link on one of the svg images to point out to a bookmark id set on the pdf page. Has anyone tried this before.

It works fine for text data. For example,
<fo:basic-link internal-destination="mark1">
  Testing link

For svg images, this doesnt work however. The following lines will not even display the svg rectangle image.

<fo:basic-link internal-destination="mark1">
  <svg:rect x="100" y="100" width="100" height="200"/>

Referring to svg examples, links in svg use <a>, which apparently works for a standalone svg image, but doesnt work in fop.

Any help appreciated.

Reply via email to