W3C home > Mailing lists > Public > www-svg@w3.org > November 2004

SVG 1.2 Comment: sXBL and element ids

From: <ralf@audiofarm.de>
Date: Thu, 04 Nov 2004 17:00:14 +0100
To: www-svg@w3.org
Message-Id: <E1CPk22-0001QF-00@config19.kundenserver.de>

>From the specification it's not clear to me (i.e. I can't find it), how
one would elegantly access an element by its id within a sXBL template
instance.

Example:
-----------------------------------------------

<xbl:xbl>
   <xbl:definition element="audiofarm:knob">
      <circle id="innerRing" />
      <circle id="outerRing" />
      <text id="channelLabel" />
   </xbl:definition>
</xbl:xbl>

<audiofarm:knob id="knob1" />
<audiofarm:knob id="knob2" />
<audiofarm:knob id="knob3" />

-----------------------------------------------

How would one access the "innerRing" element of "knob2"?

I think of something like getElementById("knob2.innerRing") - is there
such a mechanism in SVG 1.2?

ralf ...
Received on Thursday, 4 November 2004 16:02:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:52 UTC