- From: Alexandre Alapetite <alexandre@alapetite.net>
- Date: Fri, 12 May 2006 00:36:46 +0200
- To: www-html@w3.org
Hi, 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. [http://www.w3.org/TR/html401/interact/forms.html#adef-name-FORM] 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:complexContent> <xs:extension base="form.content"> <xs:attributeGroup ref="attrs"/> <xs:attribute name="action" use="required" type="URI"/> <xs:attribute name="method" default="get"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="get"/> <xs:enumeration value="post"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="enctype" type="ContentType" default="application/x-www-form-urlencoded"/> <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 --> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> This "name" attribute for the "form" element is correctly declared in the DTD [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 %attrs; 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 > Cordially, Alexandre http://alexandre.alapetite.net
Received on Tuesday, 30 May 2006 09:23:10 UTC