tags:

views:

78

answers:

1

What I tried is this

<a xlink:target="http://ponyoverflow.com"&gt;
  <text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>

and variations with href and type="simple".

The link text appears, but the link is not clickable. I tried Firefox 3.5.5, Chromium, Inkscape and GNOME Image Viewer.

Is there anything wrong with the syntax and if not is there any application that supports links in SVG?

+1  A: 

Try this:

<a xlink:href="http://ponyoverflow.com"&gt;
  <text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>

...and make sure you have an attribute xmlns:xlink="http://www.w3.org/1999/xlink" on the svg root element.

Erik Dahlström
Thanks Eric, works as you suggested. I tried the *href* version, but only when generated from javascript, which still doesn't work.I verified that the javascript produces exactly the above output (saved the document with) firefox. My workaround for now is to hardcode the link and move it to the proper position dynamically. If have an idea why the generated link isn't clickable I'd like to know.?
Ludwig Weinzierl
See here: http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#xlink
Erik Dahlström