W3C home > Mailing lists > Public > www-svg@w3.org > October 2001

Are links inside a symbol really discarded ?

From: Philippe Converset <pconverset@Qarbon.com>
Date: Mon, 29 Oct 2001 18:37:34 +0100
Message-Id: <>
To: www-svg@w3.org

I tried to add a link inside a symbol but it seems that any link inside a 
symbol is simply discarded by the "use" element which references it.

Here is an example with a link on two circle. The green circle is not a 
"use" element, thus the link is active. The red circle is a "use" element.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" 
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="200">
	<symbol id="myCircle">
		<a xlink:href="http://www.w3.org">
			<circle cx="100" cy="100" r="50" fill="red"/>
		<a xlink:href="http://www.w3.org">
			<circle cx="200" cy="100" r="50" fill="green"/>
		<use xlink:href="#myCircle"/>

In this case, a solution would be to put the link outside the "use" element 
but that's not what I want because my symbol is actually fairly complex and 
has several links on its inner elements.

Is there any solution?

Philippe Converset
Received on Monday, 29 October 2001 12:37:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:51 UTC