AllExperts > Encyclopedia 
Search      
Find out about volunteering to AllExperts

XUL: Encyclopedia BETA


Free Encyclopedia
 Home · Index · Browse A-Z  · Questions and Answers ·
Encyclopedia

Browse A-Z
ABCDEFGHIJKLMNOPQRSTUVWXYZNum


License
Disclaimer

 
 
 
 
Free Online Courses
12 Weeks to Weight Loss
Take Charge of Stress
Learn How to Bake
Budgeting 101
Deeper Faith
DIY Fashion Makeover

       MORE E-COURSES
 
   

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z  Misc

XUL

XUL (pronounced zool ()), the XML User Interface Language, is an XML User interface markup language developed by the Mozilla project.

The XUL 1.0 specification is still in draft. It uses many existing standards and technologies, including CSS, JavaScript, DTD and RDF, which makes it relatively easy to learn for people with a background in web programming and design.

It is a User interface markup language like UIML and XAML.

The main benefit of XUL is that it provides a simple and portable definition of common widgets. This reduces the software development effort in a way analogous to the savings offered by 4GL tools.

XUL documents

A XUL interface is typically defined to consist of three discrete sets of components:
Content: The XUL document(s), whose elements define the layout of the user interface.
Skin: The CSS and image files, which define the appearance of an application.
Locale: The DTD documents, which define XML entities for easy software localization.

XUL elements

XUL defines a wide range of elements, which roughly belong to the following types:Top-level elements: e.g. window, page, dialog, wizard, etc.; Widgets : e.g. label, button, text box, list box, combo box, radio button, check box, tree, menu, toolbar, group box, tab box, color picker, spacer, splitter, etc.Box model: e.g. box, grid, stack, deck, etc.; Events and Scripts: e.g. script, command, key, broadcaster, observer, etc.Data source: e.g. template, rule, etc.; Others: e.g. overlay (analogous to SSI, but client side and more powerful), iframe, browser, editor, etc.

It is possible to use elements from other applications of XML within XUL documents, such as XHTML, SVG, and MathML.

Some common widgets - such as spinbox, slider, and canvas - are not available in the current XUL 1.0 widget set, but are planned for XUL 2.0XUL:Home Page.

XUL applications

While XUL is mostly used for creating the Mozilla applications and their extensions, it is possible to use it for Web applications transferred over HTTP. One of the most well-known XUL applications of this type is the Mozilla Amazon Browser, which provides a rich interface for searching books at Amazon.com. However, many of the powerful features of Mozilla, like privileged XPCOM objects, are not available to unprivileged XUL documents (unless the script is digitally signed and user granted certain privileges to the app), and such documents also suffer from various limitations of the browser, such as the inability to load remote XUL, DTD and RDF documents.

For a simple example see Hello World! in XUL.

Trivia

THERE IS NO DATA.
THERE IS ONLY XUL.
The XUL name is a reference to the film Ghostbusters, in which the ghost of an ancient Sumerian deity called Zuul possesses the character Dana Barrett (played by Sigourney Weaver) and declares "There is no Dana, only Zuul". Since XUL is unusual in using XML to define an interface, rather than a document, its developers adopted the slogan "There is no data, only XUL". This is referred to by the XML namespace URI at the beginning of every XUL document, http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul; when viewed with a XUL-capable application, the document pointed to displays the slogan in large letters in the center of the screen (similar to that to the right).

"Keymaster" and "gatekeeper" are also references to the same plotline. This is not the only reference to Ghostbusters within Mozilla - for instance, the JavaScript debugger component is called Venkman, one of the main characters in the film.

See also

*XULRunner
*Mozilla Amazon Browser
*List of user interface markup languages
*Comparison of user interface markup languages
*ZK Framework
*xulfaces

External links

*Mozilla XUL â€" The home page for Mozilla XUL documentation
*XUL 1.0 Specification (still in draft)
*XULPlanet â€" A developer site with tutorials, references and forums
*The XUL page on Oasis Coverpages

XUL examples and tutorials

*GeorgeNava.com â€" A selection of XUL applications.
*XUL Periodic Table â€" Visual demonstration of XUL capabilities (Requires an XUL-enabled browser such as Mozilla Firefox)
*XUL and XML How to use XUL. Xul Dev project. Installing a XUL application
*DXUL â€" The home of DXUL, the DHTML XUL interpreter
*XUL Tag and Attribute Frequency of Firefox â€" The statistics of tag and attribute frequency extracted from Firefox

References





Email this page
About Us | Advertise on This Site | User Agreement | Privacy Policy | Kids' Privacy Policy | Help
About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.
This is the "GNU Free Documentation License" reference article from the English Wikipedia. All text is available under the terms of the GNU Free Documentation License. See also our Disclaimer.