W3C home > Mailing lists > Public > www-html@w3.org > March 2001

RE: XML declaration in XHTML causes problems

From: Frank Tobin <ftobin@uiuc.edu>
Date: Fri, 30 Mar 2001 06:44:48 -0600 (CST)
To: Dave J Woolley <david.woolley@bts.co.uk>
Cc: "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <Pine.BSF.4.33.0103300636490.79043-100000@palanthas.neverending.org>
Dave J Woolley, at 13:32 +0100 on Fri, 30 Mar 2001, wrote:

    The example used XHTML 1.0 Strict.  HTML 4.01 strict
    requires a block level *element*, so I assume so does
    XHTML 1.0 strict.  <body></body> would violate the
    content model for HTML 4.01 strict.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd:

    <!ELEMENT body %Block;>
    <!ENTITY % Block "(%block; | form | %misc;)*">

So, unless I'm mistaken, there must be zero or more children in a %Block.
Hence, a <body> may be empty.

I would see no reason for demanding there be children of <body>'s anyways.
However, on the flip side, lists (<ol> and friends) must be non-empty,
however (to my annoyance).

--
Frank Tobin		http://www.uiuc.edu/~ftobin/
Received on Friday, 30 March 2001 07:44:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:45 GMT