This post contains a comparison table comparing sXBL and XBL2. Nothing is normative, but it might just be correct. XBL stands for XML Binding Language and allows you to do cool stuff. See the examples in both specifications. It should be noted that the W3C has plans to work on an XBL2 as well. Dunno how that will work out.
The prefix sxbl
in the table below is bound to the http://www.w3.org/2004/xbl
namespace and the prefix xbl2
is bound to the http://www.mozilla.org/xbl2
namespace.
sXBL | XBL2 | Notes |
---|---|---|
- | Error handling | Vaguely defined in sXBL. |
sxbl:prebind , sxbl:bound and sxbl:unbinding events | The events were replaced by methods that can be implemented by the author. | - |
sxbl:import element | xbl processing instruction | They have different processing models, e.g. the PI is immutable and does not allow subtree references. |
sxbl:definition element | xbl2:binding element (also has extends as attribute) | - |
<definition element=""> is a QName | <binding element=""> is a Selector | - |
No scripting/security model? | Scripting/security model | - |
- | implicit and explicit inheritance (multiple bindings on one bound element) | - |
binding document stylesheets | scoped stylesheets | - |
- | xbl2:implementation element | - |
sxbl:template element | xbl2:template element (also has apply-author-sheets and allow-selectors-through as attributes) | - |
sxbl:shadow-tree element | xbl2:template element | In XBL2 the element name never changes. |
- | xbl2:inherited element | - |
SVG specific | defines how XBL works with HTML, SVG et cetera | - |
- | xbl2:inherits attribute | - |
- | xbl2:pseudo attribute | I like this! |
- | xbl2:style element | - |
- | xbl2:resources element | - |
- | xbl2:script element | - |
- | xbl2:prefetch element | For things like new Image() is used today for. Support is optional though. |
static | allows dynamic forcing of insertion points | See the xblSetInsertionPoint() method on XBLContentElement |
- | concept of trusted events | - |
sxbl:content element | xbl2:content element (also has apply-binding-sheets and locked as attributes) | xbl2:content 's processing model is probably going to be quite different from sxbl:content 's (because of sXBL probably changing). In particular, nested bindings handle repositioned explicit children of higher scopes atomically in sXBL, and mixed in with other explicit children in XBL2. |
sxbl:handlerGroup element | xbl2:handlers element | - |
ev:listener , svg:handler or other event handler elements | more powerful xbl2:handler element while still allowing the other event handler elements like ev:listener and svg:handler | - |
Probably ends up using XPath | Uses Selectors | W3C Member only comparison of those technologies specifically written for this context. |
id attribute | id attribute | Hello, xml:id is a Rec! |
Thanks to Ian Hickson for providing some additional points.