Adding parameters in (svg) links

0 votes
asked Mar 18 in Question / help by costateixeira (280 points)

I'm adding an svg diagram in a boostrap page and i need to pass a parameter in the links - in my case, I want the links to contain the parameter "data-tab" which tells bootstrap which tab to use.

Is there a way to add a parameter to the svg? It can be a fixed value (or taken from the diagram source, but I guess that would be more difficult).

Example: I have

<a xlink:type="simple" xlink:show="new" xlink:title="tab3.link1" xlink:actuate="onRequest" xlink:href="#tab3.link1" target="_top">

and I'd want

<a xlink:type="simple" data-tab="#tab3" xlink:show="new" xlink:title="tab3.link1" xlink:actuate="onRequest" xlink:href="#tab3.link1" target="_top">

Thank you

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...