W3C home > Mailing lists > Public > www-html@w3.org > May 2006

"name" attribute for "form" element lacking in XML Schema for XHTML 1.0 transitional

From: Alexandre Alapetite <alexandre@alapetite.net>
Date: Fri, 12 May 2006 00:36:46 +0200
To: www-html@w3.org
Message-ID: <002001c6754b$5f0e7da0$f9043f50@athlon1100>

The XML Schema for XHTML 1.0 transitional  
[http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd] is apparently  
not allowing
the "name" attribute for the "form" element, as I think it should.

Here is the reference about this attribute in the HTML 4.01 specification.

I suggest an update of this schema, line 2118. Here is  
xhtml1-transitional.xsd, lines 2097-2122:

<xs:element name="form">
  <xs:complexType mixed="true">
    <xs:extension base="form.content">
     <xs:attributeGroup ref="attrs"/>
     <xs:attribute name="action" use="required" type="URI"/>
     <xs:attribute name="method" default="get">
       <xs:restriction base="xs:token">
        <xs:enumeration value="get"/>
        <xs:enumeration value="post"/>
     <xs:attribute name="enctype" type="ContentType"
     <xs:attribute name="onsubmit" type="Script"/>
     <xs:attribute name="onreset" type="Script"/>
     <xs:attribute name="accept" type="ContentTypes"/>
     <xs:attribute name="accept-charset" type="Charsets"/>
     <xs:attribute name="target" type="FrameTarget"/>
     <xs:attribute name="name" type="xs:NMTOKEN"/><!-- Line added -->

This "name" attribute for the "form" element is correctly declared in the  
[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd] on line 889.

Here is an extract from xhtml1-transitional.dtd, lines 885-896:

<!ATTLIST form
  action      %URI;          #REQUIRED
  method      (get|post)     "get"
  name        NMTOKEN        #IMPLIED
  enctype     %ContentType;  "application/x-www-form-urlencoded"
  onsubmit    %Script;       #IMPLIED
  onreset     %Script;       #IMPLIED
  accept      %ContentTypes; #IMPLIED
  accept-charset %Charsets;  #IMPLIED
  target      %FrameTarget;  #IMPLIED

Received on Tuesday, 30 May 2006 09:23:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:13 UTC