XML without the <!DOCTYPE>

Monday 19 December 2005

Tim Bray, who is one of the editors of the XML standard, and creator of the awesome Annotated XML Specification, writes about the absurd wart of <!DOCTYPE>: Drop the <!DOCTYPE>. I've long thought that of all the things that are ugly about XML, <!DOCTYPE> is the worst: it could easily have been separated out into another standard, giving competing validation techniques an equal chance, and saving us from carrying it around forever in the spec.

It turns out Tim and Norman Walsh (another XML luminary) have each written speculative follow-on XML specs: Norman's XML 2.0, and Tim's XML-SW, both of which omit <!DOCTYPE>. Neither of these is being worked on as an actual standard, but it's interesting to see where people think XML can go. (I know: "Hey buddy! I'll tell you where XML can go!", ba-dum bum!)

Tim's a smart guy, though. He observes (correctly):

I suspect that nothing will happen; we’ll go forward indefinitely into the future, with XML implementors required to read the XML spec, learn to ignore all the Doctype stuff, then go read the Namespaces and Infoset specs, and synthesize all that in their heads.

Standards evolve to a point where they are good enough, and they get a large enough adoption, then they stop, because it isn't worth the marginal improvement to leave all the earlier adopters behind. It happened with HTML, and it's happened with XML.

tagged: » 1 reaction


Bob 10:19 AM on 19 Dec 2005

...and it's happened with HTTP as well. HTTP/1.1 seems like it's pretty much it... warts and all. As well as all of the cruft that's been layered on top as "usual practice" without formal specs.

Add a comment:

Ignore this:
not displayed and no spam.
Leave this empty:
not searched.
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.