You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Gary Frederick <ga...@jsoft.com> on 2004/01/30 13:06:33 UTC

Links out of SVG content: the 'a' element

Howdy,

SVG can link to XHTML. http://www.w3.org/TR/SVG11/linking.html#AElement

Is there a way to configure Batik so a link starts Mozilla or some other 
browser when the link is activated?

Gary


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Links out of SVG content: the 'a' element

Posted by Thomas DeWeese <Th...@Kodak.com>.
Gary Frederick wrote:

> SVG can link to XHTML. http://www.w3.org/TR/SVG11/linking.html#AElement
> 
> Is there a way to configure Batik so a link starts Mozilla or some other 
> browser when the link is activated?

    If you are willing to write code, yes.  All links are opened by
batik.swing.svg.JSVGComponent.BridgeUserAgent.openLink(SVGAElement e)
You can override this in a subclass of JSVGCanvas/Component by
overriding 'createUserAgent()'.

    The real trick is knowing what it is you are opening (SVG or
XHTML).




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org