W3C home > Mailing lists > Public > www-html@w3.org > November 2003

Re: Scripting DTD's

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 15 Nov 2003 10:44:45 +0000 (UTC)
To: Chris Moschini <cmoschini@myrealbox.com>
Cc: www-html@w3.org
Message-ID: <Pine.LNX.4.58.0311151041520.3009@dhalsim.dreamhost.com>

On Fri, 14 Nov 2003, Chris Moschini wrote:
> This *is* true of XML DTDs - if I provide a machine capable of
> understanding XML a DTD and XML, it immediately knows what to do with
> that XML.

Actually this is emphatically not the case. There is nothing in DTDs that
can say that a link is a link or a DL is a definition list. There is
nothing that can say that a class attribute is a class attribute or that a
<title> element should be used for the window title. And so forth. Indeed
DTDs aren't even very good at describing the intricate rules that govern
the syntax of HTML, and XML DTDs are even less expressive (they can't say
nested links are illegal, for example).


Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 15 November 2003 05:44:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:06 UTC