About
This is a XBL 2 implementation in JavaScript. Besides the XBL 2.0 language, it also contains the Selectors API implementation with support for CSS 3 Selectors as well as Behavioral Extensions to CSS, Document Object Model (DOM) Level 3 Events and XML Base.
Usage
All you need to get XBL 2.0 support on your pages is:
- download the library
- include single JavaScript file xbl.js (or xbl-dev.js for development purposes) from it
- specify bindings in your stylesheet and get the bindings bound!
<head>
...
<script type="text/javascript" src="xbl.js"></script>
...
<style type="text/css">
#myid div.myclass > p {
binding: url('mydocument.xml#mybinding');
}
</style>
...
</head>Browser support
The XBL 2.0 has so far not been implemented in any modern web-browser. However the implementation hosted here is designed in a way that it will not be used in case browser supports the technology natively. The list below contains browsers on which the implementation was successfully tested.
| Browser name | Lowest version* |
| Internet Explorer | 5.5 |
| Firefox | 1.5 |
| Safari | 3.0 |
| Opera | 9.0 |
| Konqueror | 4.0 |
| Chrome | 0.2 |
* The implementation was not tested with earlier versions
Specifications
- XML Binding Language (XBL) 2.0
- XBL 2.0 Primer: An Introduction for Developers
- Behavioral Extensions to CSS
IDE integrations
- XBL 2.0 Schema (non-normative)