Re: Scripting DTD's

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).

HTH.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 15 November 2003 05:44:47 UTC