Holger,

> a solution avoiding binding via script, would be to allow CSS 
> Selectors or XPath on definition-elements  element Attribute.
> so i could do something like this:
> 
>    <xbl:xbl>
>     <xbl:definition element="/*//[EMAIL PROTECTED]'bar']">
>      <xbl:template>
>       <!-- svg elements making up a bar Chart -->
>      </xbl:template>
>     <xbl:/definition>
>     <xbl:definition element="/*//[EMAIL PROTECTED]'pie']">
>      <xbl:template>
>       <!-- svg elements making up a bar Chart -->
>      </xbl:template>
>     <xbl:/definition>
>    </xbl:xbl>

We do something similar, except we remove the binding aspect from the XBL
side. So our XBL documents just contain the methods, properties, event
registration, initial content, and so on. (This is the same as XBL, but not
the same as sXBL.) The rules to bind those components into some document or
other are specified using 'binding defintions'. These definitions are
defined using XPath expressions. As you say, this is a convenient way to do
things, but it's particularly useful for us because it means we can add
other rules, such as selecting a binding on the basis of a schema type
(which is needed for XForms).

Regards,

Mark


Mark Birbeck
CEO
x-port.net Ltd.

e: [EMAIL PROTECTED]
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to