W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2007

XHTML Basic 1.1 DTD declares hr but it cannot be included in anyelement

From: Jesus Arias Fisteus <jaf@it.uc3m.es>
Date: Sat, 15 Sep 2007 13:35:22 +0200 (CEST)
To: www-html-editor@w3.org
cc: Vicente Luque Centeno <vlc@it.uc3m.es>
Message-ID: <Pine.LNX.4.62.0709151306530.6181@ariadna.it.uc3m.es>

I've found that the DTD of XHTML Basic 1.1 declares de hr element, but it 
doesn't appear in the content model of any element, and therefore it 
cannot be used. A detailed explanation follows.

All the information bellow is based on the revision:
Revision:   $Id: xhtml-basic11.dtd,v 1.1 2007/07/20 15:00:12 jules Exp $

The XHTML DTD includes the "Presentation Module" which declares the 
element "hr". See:


However, "hr" isn't in the content model of any element. For example, it 
isn't in the content model of the element "body". The element "body" is 
declared as:

(from http://www.w3.org/MarkUp/DTD/xhtml-struct-1.mod)

<!ENTITY % body.content
      "( %Block.mix; )+"
<!ELEMENT %body.qname;  %body.content; >

The entity Block.mix is declared as:

(from http://www.w3.org/MarkUp/DTD/xhtml-basic11-model-1.mod)

<!ENTITY % Block.mix
       | %List.class;
       | %Block.class;

You can check that "hr" is not declared in any of these entities as it 

If it helps, the following web site maintained by me shows the information 
of the DTD in a more human-friednly way. All the information was 
extracted automatically from the DTD available today (Sep 15 2007):



Jesús Arias Fisteus
Universidad Carlos III de Madrid (Spain)
Received on Saturday, 15 September 2007 11:35:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:39:50 UTC