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

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

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
What (do you think) is XBL for?   Message List  
Reply | Forward Message #30 of 38 |
What I wanted XBL for.

"What (do you think) is XBL for?"

A very good question.

The way I found XBL in the first place was by answering this question
in reverse. I knew exactly what I wanted to do, and knew that XSL,
XForms, and SVG/CSS/Javascript were not capable of addressing that need.

What I wanted to do was something like this:




<?xml version="1.0" ?>
<xhtml xmlns:my_widgets="http://xseed.us/xbl_lib/widgets_1_0.xbl">

<body>
<my_widgets:menubar>
<my_widgets:menu label="file">
<my_widgets:menu label="open" onmousedown="open('file.xml')" />
<my_widgets:menu label="save" onmousedown="save()" />
</my_widgets:menu>
</my_widgets:menubar>
</body>

</xhtml>




Notice there are no CSS or Script imports. I wanted to encapsulate the
default rendering style, event driven behaviors, and XML descriptions
in a single location, and use namespaces in the main document to avoid
name collisions (such as with the deprecated HTML menu tag). All the
necessary Javascript would be imported by the XBL file, and additional
CSS files could be added to the main document to style XBL defined
tags beyond their defaults.

I also wanted to be able to design an individual tag much like I would
a webpage, with all the imported CSS and Javascript behaving as expected.

And finally it had to be possible for the XML structure of a tag
definition to change without affecting the structure of the main
document. If it DID change the main document's structure, then any
scripts that depended on that structure would need to be changed as
well (This is what shadow nodes provide).

XBL is the technology that came closest to providing these capabilities.



BTW I know I'm using the XML namespace URL in a way it wasn't designed
for. This was the cleanest way I could think of to import a set of
tag definitions into a document, and associate them with a
namespace. If necessary the same could be done with a custom importing
tag like used with scripts.









Mon Jun 5, 2006 12:00 am

chaosvoyager
Offline Offline
Send Email Send Email

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

Very often a technology gets popular with something it wasn't originally designed for, thereby sometimes defeating a technology that is designed and better fit...
steltenpower
Offline Send Email
Apr 18, 2006
12:53 am

... Very thankful you started this discussion, shall have plenty of questions:) cheers Michael...
Michael Bolger
svgfoundation
Offline Send Email
Apr 20, 2006
12:38 pm

"What (do you think) is XBL for?" A very good question. The way I found XBL in the first place was by answering this question in reverse. I knew exactly what I...
chaosvoyager
Offline Send Email
Jun 5, 2006
12:14 am
Advanced

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