Re: SVG 1.2 Comment: sXBL and element ids

>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