- From: Peter Sorotokin <psorotok@adobe.com>
- Date: Thu, 04 Nov 2004 14:35:00 -0800
- To: www-svg@w3.org
At 10:21 PM 11/4/2004 +0100, Ralf Siegel wrote:
>>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 ...
Not is sXBL, but likely in XBL2.0. sXBL is meant to be just a first step.
You could add your own custom logic for xbl:bind event to do this kind of
transformations/connections in script.
Peter
>-------------------------------------------------------------
>Ralf Siegel - Freelance Developer
>Recommended Listening: Blonde Redhead - Misery Is A Butterfly
>http://www.blonde-redhead.com
>-------------------------------------------------------------
Received on Thursday, 4 November 2004 22:35:03 UTC