Search the web
Sign In
New User? Sign Up
xbl-developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
first post: What flavors of XBL are there?   Message List  
Reply | Forward Message #17 of 38 |
Re: [xbl-developers] Re: first post: What flavors of XBL are there?

Kurt Cagle wrote:
> What if there was a central requirement that the shadow tree
> 1) had to be contained within the element,
> 2) had to be in a namespace with a different prefix than the dominant
> namespace - i.e.,
> 3) you worked with wrapper methods that were sensitive to that prefix.
>
> <svg xmlns="http://www.w3.org/2000/svg" ...>
> <g id="stuff">
> <ex:star cx="100" cy="100" numpoints="5" r="100" r2="50">
> <!-- This is the shadow tree for the ex:star element -->
> <ge:g xmlns:ge="http://www.w3.org/2000/svg">
> <ge:path d="..."/>
> </ge:g>
> </ex:star>
> </g>
> <script>
> // my script
> </script>
> </svg>

I added the xmlns declaration to your first svg tag, because I think you
need it and I need it for my point.

This won't work. The 'abbreviation' of the namespace ("ex" and "ge"
here) aren't supposed to have any real meaning. In:

<somenode xmlns:a="http://a.uri.com/x" xmlns:b="http://a.uri.com/x">
<a:x />
<b:x />
</somenode>

there's no difference between the two "x" tags (other than order, of
course); the tags aren't in "two namespaces", they both go to the same
namespace.

Distinguishing between the two prefixes would be a misfeature. An XML
parser really shouldn't give you enough information to tell the two
apart; if it does, you *certainly* shouldn't use it.

XBLinJS actually does require that every widget have one and only one
top-level node, which works in HTML because we can almost always use
span and div. I don't know if SVG has a similarly "neutral" collection
tag. (It should, though; anything implementing DOM events should have
such a node so you can put the event handlers in the right place, once.)
Everything under that widget node is assumed to belong to that widget,
although there may of course be other widgets below that.






Fri Apr 21, 2006 4:53 pm

jerfb
Offline Offline
Send Email Send Email

Forward
Message #17 of 38 |
Expand Messages Author Sort by Date

I count 4 different flavors: MozXBL1, MozXBL2, sXBL, w3cXBL2. This is not how they were/are originally named by the parties that designed them, but...
steltenpower
Offline Send Email
Apr 17, 2006
10:42 pm

Can we count XBLinJS as another serious flavour? http://www.jerf.org/resources/xblinjs/ The developer created it cause he doesn't like MozXBL: ...
steltenpower
Offline Send Email
Apr 19, 2006
11:59 am

Hi Ruud. ... I've wondered before whether an implementation of sXBL in script would be viable (to get more people to try using it in UAs other than Batik), but...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 19, 2006
12:54 pm

... Interesting. If I'm reading the definition of "shadow tree" correctly, I consider it one of the *advantages* of XBLinJS that it uses *real* nodes and not...
Jeremy Bowers
jerfb
Offline Send Email
Apr 19, 2006
3:52 pm

Hi, Jeremy- As I understand it, the advantage of shadow-trees is in their direct connection with the source elements, in terms of structure, semantics, and ...
Doug Schepers
d_a_schepers
Offline Send Email
Apr 19, 2006
8:49 pm

... Ah, yes, that makes sense. One of my basic objections about the way this stuff is being engineered is that everything you mentioned is dependent upon being...
Jeremy Bowers
jerfb
Offline Send Email
Apr 19, 2006
9:56 pm

... In a word, encapsulation. Having the shadow nodes inside a shadow tree that is connected to the element, and not in the real DOM, affords some level of...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 19, 2006
11:10 pm

Re: shadow nodes and event binding I think that the only things that you wouldn't be able to do with a Javascript implementation of an XBL would be obscuring...
Kurt Cagle
kurt_cagle
Offline Send Email
Apr 21, 2006
6:01 am

... Cameron, Not completely sure about that. I do agree that it would probably be fairly inefficient, but I'm not sure that a Javascript shadow tree ...
Kurt Cagle
kurt_cagle
Offline Send Email
Apr 21, 2006
5:48 am

... I don't think it would be that inefficient, but there'd be the issue of having things like: <svg ...> <g id="stuff"> <ex:star cx="100" cy="100"...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 21, 2006
6:33 am

What if there was a central requirement that the shadow tree 1) had to be contained within the element, 2) had to be in a namespace with a different prefix...
Kurt Cagle
kurt_cagle
Offline Send Email
Apr 21, 2006
6:59 am

... I added the xmlns declaration to your first svg tag, because I think you need it and I need it for my point. This won't work. The 'abbreviation' of the...
Jeremy Bowers
jerfb
Offline Send Email
Apr 21, 2006
10:02 pm

... Yeah, it seems a bit dodgy somehow to rely on the prefix that was used (especially since the element may have been created in a namespace but without a...
Cameron McCormack
heycam_yg
Offline Send Email
Apr 22, 2006
3:08 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help