Re: [XBL] SVG defining traits on bindings

On Sat, 13 Jan 2007, Cameron McCormack wrote:
> 
> In SVG 1.2 Full, we want to be able to define “traits” on bound 
> elements.  These will allow custom elements to be animatable with SMIL 
> animation elements.  An example of the syntax we wish to use is:
> 
>   <xbl:binding element="ex|star">
>     <xbl:template>
>       <path …/>
>     </xbl:template>
>     <traitDef namespace="" name="cx"
>               valueType="http://www.w3.org/2000/svg#SVGLength"/>
>     <traitDef namespace="" name="cy"
>               valueType="http://www.w3.org/2000/svg#SVGLength"/>
>     <traitDef namespace="" name="r"
>               valueType="http://www.w3.org/2000/svg#SVGLength"/>
>     <traitDef namespace="" name="points"
>               valueType="http://www.w3.org/2000/svg#SVGNumber"/>
>   </xbl:binding>
> 
> The SVG WG wishes to confirm that there is nothing in XBL 2.0 that would 
> preclude us from defining the traitDef element in this manner (see 
> http://www.w3.org/TR/2004/WD-SVG12-20041027/binding.html#traitDef-element). 
> If there is something that would preclude this, we request that it be 
> changed so that this is allowed.

There is nothing that so precludes new elements being added to <binding> 
and the XBL processing model; indeed, the XBL2 specification explicitly 
allows non-XBL elements as children of both <xbl> and <binding> for this 
very reason.

Cheers,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 13 January 2007 03:05:33 UTC