Re: DTD for XUL?

Michael McLay <[email protected]>
Newsgroups gmane.comp.python.anygui.devel
Organization NIST
Message-ID <[email protected]>
On Wednesday 11 September 2002 06:00 pm, Hellen Claggett wrote:
> Does anyone on the list know where I can grab an official XUL DTD? The
> obvious places like mozilla.org and xulplanet.org don't seem to have it.
> I'm probably blind or something.

I did some googling and came up with the following bits of information that 
might be of some help.

Documentation on the Mozilla project has been lagging implementation for some 
time now. The XUL documentation is years out of date. According to 
<http://weblogs.userland.com/eclectic/2002/06/17> :

   Following the release of Mozilla 1.0, Don Park took another look at XUL,
   and was disappointed to find "old documents, a half finished spec for XUL
   1.0, and countless differences in old documentations. There is no final
   spec, no DTD nor schema.". Park wonders why XUL is being neglected."

There is an XUL DTD that was developed by Neosynapse:

   Neosynapse has developed a DTD for XUL based on the documentation on
   www.xulplanet.com. This document is version 1.0 of the DTD, and may contain
   bugs or errors. No updates to this document are anticipated. Instead, this
   document will be replaced by an XML Schema for XUL when time permits.

	http://www.neosynapse.net/downloads/xul.dtd

An alternative to using a DTD would be to reverse engineer how they are using 
the tags in the Chrome definitions. Since Mozilla doesn't appear to make use 
of a DTD in parsing XUL this approach would also probably be more accurate 
because it would reflect actual use. There is a python documented at the 
Mozilla site that parses the Chrome. The script is out of date, but it is 
very short and could easily be spruced up. The script parses the Chrome 
definitions and builds a web page of all the elements and attributes 
available in Mozilla.

	http://www.mozilla.org/docs/xul/xulnotes/xulnote_diagnostic.html



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.