Overview
XBLUI provides user interface enhancements for HTML. Enhancements are implemented with element bindings using the W3C's XML Binding Language (XBL)1. XBL provides a simple method of applying and extending the built-in enhancements.
XBLUI is a cross-browser Javascript library and incorporates Javascript and DOM fixes and enhancements to promote standards-based, browser-agnostic web-development.
Since no current browser has a native XBL implementation XBLUI has its own partial, cross-browser implementation. Native XBL implementations will improve the performance of XBLUI enhancements.
Notes:- Also commonly referred to as XBL2, not to be confused with the non-compatible Mozilla XBL also known as XBL1.
Quick start
Using XBLUI in your web-page is typically a three step process:
- include the XBLUI script
- create a XBL document to specify which elements receive user interface enhancements
- include the XBL document with a
link
orstyle
element (similar to including a CSS document)
The following example illustrates the simple case of adding numeric input functionality to a HTML input element as in the Web Forms 2 specification:
<html>
<head>
<script src="http://dist.meekostuff.net/XBLUI/1.1-default/XBLUI.js"></script>
<style type="application/xml">
<xbl xmlns="http://www.w3.org/ns/xbl">
<binding
element="input[type=number]"
extends="http://dist.meekostuff.net/XBLUI/default/WF2.xml#WF2NumberInput"/>
</xbl>
</style>
</head>
<body>
<label>Enter a number from 0 to 100
<input type="number" min="0" max="100" value="50" />
</label>
</body>
</html>
Licensing
XBLUI is available under the Creative-Commons Attribution, No-Derivatives license. If you aren't sure whether that applies to your intended usage then contact me for specific approval. The following list are guides for some specific scenarios:
- you can use the library in any web-page by including a script element linking to the original file on the meekostuff.net domain
- you can also copy the library to the domain of the web-page and link to it there
- you can copy the library to another domain for the purpose of redistribution provided you acknowledge that it is the XBLUI library and that you provide a link to the XBLUI project page at meekostuff.net.
Long-term licensing is yet to be decided - please check the license conditions of new releases before use.