World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0000793475
Reproduction Date:

Title: Xbl  
Author: World Heritage Encyclopedia
Language: English
Subject: SXBL, Venkman, Beonex Communicator, Mozilla Sunbird, Firefox 3.5
Collection: Declarative Markup Languages, Markup Languages, Mozilla, World Wide Web Consortium Standards, Xml-Based Standards
Publisher: World Heritage Encyclopedia


XBL (XML Binding Language) is an XML-based markup language used to declare the behavior and look of XUL-widgets and XML elements. Development of the XBL specification was abandoned by the W3C in 2012.

XBL was developed by the Mozilla project for use in the Mozilla Application Suite; the language is not currently described by any formal standard and is thus proprietary to Mozilla, with the only implementation being the Gecko layout engine. XBL 2.0 is the latest version of XBL.


  • XBL basics 1
  • History and future 2
  • Relationship with other specifications 3
  • See also 4
  • References 5
  • External links 6
    • Documentation/Browser implementations 6.1
    • Cross-Browser implementations 6.2

XBL basics

In XUL one defines the user interface layout of an application, and then by applying "styles" one can customize the look of various elements. The drawback is that XUL provides no means to change an element's function. For example, one might want to change how the pieces of a scroll bar work. This is where XBL comes in.

An XBL file contains "bindings", each of which describes the behavior of a XUL-widget or XML element. For example, a binding might be attached to a scroll bar. The behavior describes the properties and methods of the scroll bar and also describes the XUL elements defining the scroll bar.

The root element of an XBL file is the element, which contains one or more elements. Each element declares one binding, which can be attached to any XUL element. It may also possess an id attribute. A binding is assigned to an element by setting the CSS property -moz-binding to the URL of the binding's file. For example:

scrollbar {
  -moz-binding: url('somefile.xml#binding1');

wherein binding1 is the id of the binding.

History and future

XBL was initially developed and implemented as part of the Mozilla platform, alongside the XUL language, so XBL is available in most Mozilla-based products: Firefox, Thunderbird, SeaMonkey etc. There used to be an XBL 1.0 specification document on, which was submitted to W3C as a Technical Note, but the actual implementation never matched the specification.

The newest version of the specification, called XBL 2.0, was developed to address the problems of XBL 1.0 and to allow for implementation with a broader range of Web browsers. The Candidate Recommendation of the specification was released by W3C in March, 2007.[1] The specification was not implemented by other browser vendors. Work on the XBL 2.0 specification was abandoned by the W3C Working Group in 2012.[2]

Relationship with other specifications

The sXBL specification aims to do for SVG documents what XBL has done for XUL documents. SVG is an XML language proposed by the W3C supporting graphics, animations, embedded media, events and scripted behavior.

XBL 2.0 superseded the sXBL draft [1], as stated in the W3C Web Application Format Working Group site. Also the chapters of the sXBL specification are a subset of those of XBL 2.0.

The Shadow DOM specification acknowledges XBL as a strong influence.

See also

  • XForms is also designed to be extended using XBL
  • Wikibook XForm example of XBL
  • XUL
  • sXBL


  1. ^ W3C news archive: 2007
  2. ^ [2]

External links

Documentation/Browser implementations

  • Mozilla XBL documentation
  • W3C XBL 2.0 Candidate Recommendation
  • XBL 2.0 Primer Working Draft
  • The latest XBL 2.0 update on mozilla website (same content as W3C version)
  • Partial implementation of the XBL 2.0 in the Java based X-Smiles browser

Cross-Browser implementations

  • Cross-browser XBL 2.0 implementation in JavaScript
  • Partial implementation of XBL 2.0 in JavaScript by Sean Hogan
  • XBL Marquee - An example implementation.
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.