W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] [html5] tags, elements and generated DOM

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 07 Apr 2005 09:25:02 +1000
Message-ID: <42546FCE.5070900@lachy.id.au>
Anne van Kesteren wrote:
> Lachlan Hunt wrote:
>>> (2) Criteria that cannot be expressed by a DTD, but can still be 
>>> checked by a machine.
>> Such as...?
> <a><em><a/></em></a>

That can be, and is expressed in the HTML4 DTD with:
<!ELEMENT A - - (%inline;)* -(A)       -- anchor -->

Though, I don't beleive it can be expressed with an XML DTD.

> (Can also be expressed using RelaxNG or XML Schema.)

Of course, schema's are also included within my use of DTD above when 
talking about XML versions (though I was originally only referring to 
SGML), so the above would be something that can be checked by a machine.

Lachlan Hunt
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Received on Wednesday, 6 April 2005 16:25:02 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC