Fwd: RE: [svg-developers] Re: sXBL, loading using JavaScript

This is a forwarded message
From: Peter Schonefeld <peter.schonefeld@bigpond.com>
To: <svg-developers@yahoogroups.com>
Date: Saturday, June 11, 2005, 7:18:41 AM
Subject: [svg-developers] Re: sXBL, loading using JavaScript

===8<==============Original message text===============
Hi Holger, From your example I can see that the XPath expression becomes
very useful. I wonder why it is missing??

Pete



-----Original Message-----
From: svg-developers@yahoogroups.com
[mailto:svg-developers@yahoogroups.com]On Behalf Of Holger Will
Sent: Saturday, June 11, 2005 1:27 AM
To: svg-developers@yahoogroups.com
Subject: Re: [svg-developers] Re: sXBL, loading using JavaScript


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="/*//valueList[@chartType='bar']">
     <xbl:template>
      <!-- svg elements making up a bar Chart -->
     </xbl:template>
    <xbl:/definition>
    <xbl:definition element="/*//valueList[@chartType='pie']">
     <xbl:template>
      <!-- svg elements making up a bar Chart -->
     </xbl:template>
    <xbl:/definition>
   </xbl:xbl>




-----
To unsubscribe send a message to: svg-developers-unsubscribe@yahoogroups.com
-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:
    svg-developers-unsubscribe@yahoogroups.com

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


===8<===========End of original message text===========



-- 
 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 W3C Graphics Activity Lead

Received on Wednesday, 29 June 2005 19:17:30 UTC