Re: Validation error?

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 UTC