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

Error in definition of head element

From: David Meredith <dave@titanmusic.com>
Date: Wed, 28 Mar 2007 11:31:32 +0100
To: <www-html-editor@w3.org>
Message-ID: <001b01c77124$419c4470$0e01a8c0@DAVE>

Hi,

I am currently lecturing Web technologies at Goldsmiths, University of
London and, in the process of setting my students a task on DTDs, I appear
to have found an error in the DTD for XHTML, available here

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

Specifically, in this DTD, the definition of the head element is given as
follows:

<!ELEMENT head (%head.misc;,
     ((title, %head.misc;, (base, %head.misc;)?) |
      (base, %head.misc;, (title, %head.misc;))))>

However, I think there should be a question mark after the "(title,
%head.misc;)" to indicate that the base element can occur on its own without
a title element. That is, I believe the definition should be as follows:

<!ELEMENT head (%head.misc;,
     ((title, %head.misc;, (base, %head.misc;)?) |
      (base, %head.misc;, (title, %head.misc;)?)))>

Is that right?

Best regards,
Dave Meredith

---
David Meredith
dave@titanmusic.com
http://www.titanmusic.com
Received on Wednesday, 28 March 2007 15:58:18 GMT

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