W3C home > Mailing lists > Public > www-validator@w3.org > March 2002

Re: Validation error?

From: Liam Quinn <liam@htmlhelp.com>
Date: Wed, 6 Mar 2002 14:55:54 -0500 (EST)
To: "L. Rutledge" <ldrut@Peaknet.net>
cc: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33L2.0203061454061.32035-100000@localhost.localdomain>
On Mon, 25 Feb 2002, L. Rutledge wrote:

> I am getting the following error when I try to validate one of my files (XHTML 1.0)
> =======================================
> Line 37, column 17:
>   <map name="admap">
>                    ^
> Error: required attribute "id" not specified
> =======================================
> This is the only error reported. I have looked through the specs and DTD and can
> find no indication that the id attribute is in fact required. Can someone correct or
> confirm this?

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

<!ATTLIST map
  %i18n;
  %events;
  id          ID             #REQUIRED
  class       CDATA          #IMPLIED
  style       %StyleSheet;   #IMPLIED
  title       %Text;         #IMPLIED
  name        NMTOKEN        #IMPLIED
  >

So the "id" attribute is required.

-- 
Liam Quinn
Received on Wednesday, 6 March 2002 14:55:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:01 GMT