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

Re: SVG 1.2 Comment: sXBL and element ids

From: Ralf Siegel <ralf@audiofarm.de>
Date: Thu, 04 Nov 2004 22:24:23 +0100
Message-Id: <5.1.0.14.2.20041104222334.0215c9e8@pop.kundenserver.de>
To: www-svg@w3.org


>document.getElementById("knob2").xblShadowTree.getElementById("innerRing")

Ok, great.

Along the same line (the questions mostly arise from a current real life 
project, where I have implemented such a template system in SVG / 
EcmaScript targeted at ASV 3.0 )

Is the following (expressed in pseudo code) somehow natively supported at 
instanciation time, and if yes - how can it be accomplished (syntax-wise) 
in SVG 1.2?

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

<xbl:xbl>
    <xbl:definition element="audiofarm:knob">
       <circle id="innerRing" r="r_knob*10"/>
       <circle id="outerRing" r="r_knob*20"/>
       <text id="channelLabel"/>
    </xbl:definition>
</xbl:xbl>

<audiofarm:knob id="knob1" r="100"/>
<audiofarm:knob id="knob2" r="50"/>
<audiofarm:knob id="knob3" r="25"/>

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

where "r_knob" refers to the audiofarm:knob instance property "r" (25,50,100)

ralf ...

-------------------------------------------------------------
Ralf Siegel - Freelance Developer
Recommended Listening: Blonde Redhead - Misery Is A Butterfly
http://www.blonde-redhead.com
-------------------------------------------------------------
Received on Thursday, 4 November 2004 21:25:42 UTC

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