|
819 | 819 | </xs:attribute>
|
820 | 820 | <xs:attribute name="pattern" type="xs:string"/>
|
821 | 821 | <xs:attribute name="placeholder" type="xs:string"/>
|
822 |
| - <xs:attribute name="readonly"> |
823 |
| - <xs:simpleType> |
824 |
| - <xs:restriction base="xs:token"> |
825 |
| - <xs:pattern value="([Rr][Ee][Aa][Dd][Oo][Nn][Ll][Yy])?"></xs:pattern> |
826 |
| - </xs:restriction> |
827 |
| - </xs:simpleType> |
828 |
| - </xs:attribute> |
| 822 | + <xs:attribute name="readonly" type="readonly_boolean"/> |
829 | 823 | <xs:attribute name="required" type="required_boolean"/>
|
830 | 824 | <xs:attribute name="size" type="positive_int"/>
|
831 | 825 | <xs:attribute name="src" type="xs:anyURI"/>
|
|
1151 | 1145 |
|
1152 | 1146 | <xs:element name="sup" type="inline_children_only"/>
|
1153 | 1147 |
|
1154 |
| -<!-- Not imposing any HTMLBook specific constraints on button content; deferring to HTML5 spec --> |
1155 |
| -<xs:element name="textarea" type="any_elems_attrs"/> |
| 1148 | +<xs:element name="textarea"> |
| 1149 | + <xs:complexType mixed="true"> |
| 1150 | + <xs:attribute name="autofocus" type="autofocus_boolean"/> |
| 1151 | + <xs:attribute name="cols" type="positive_int"/> |
| 1152 | + <xs:attribute name="dirname" type="xs:string"/> |
| 1153 | + <xs:attribute name="disabled" type="disabled_boolean"/> |
| 1154 | + <!-- form attribute must refer to ID of a <form> element, but we're just checking that it's an IDREF --> |
| 1155 | + <xs:attribute name="form" type="xs:IDREF"/> |
| 1156 | + <xs:attribute name="maxlength" type="positive_int"/> |
| 1157 | + <xs:attribute name="name"> |
| 1158 | + <xs:simpleType> |
| 1159 | + <xs:restriction base="xs:string"> |
| 1160 | + <xs:minLength value="1"/> |
| 1161 | + </xs:restriction> |
| 1162 | + </xs:simpleType> |
| 1163 | + </xs:attribute> |
| 1164 | + <xs:attribute name="placeholder" type="xs:string"/> |
| 1165 | + <xs:attribute name="readonly" type="readonly_boolean"/> |
| 1166 | + <xs:attribute name="required" type="required_boolean"/> |
| 1167 | + <xs:attribute name="rows" type="positive_int"/> |
| 1168 | + <xs:attribute name="wrap"> |
| 1169 | + <xs:simpleType> |
| 1170 | + <xs:restriction base="xs:token"> |
| 1171 | + <xs:enumeration value="soft"/> |
| 1172 | + <xs:enumeration value="hard"/> |
| 1173 | + </xs:restriction> |
| 1174 | + </xs:simpleType> |
| 1175 | + </xs:attribute> |
| 1176 | + <xs:attributeGroup ref="globals"/> |
| 1177 | + </xs:complexType> |
| 1178 | +</xs:element> |
1156 | 1179 |
|
1157 | 1180 | <xs:element name="time">
|
1158 | 1181 | <!-- time elements can have any inline children, excluding another "time" element -->
|
|
1558 | 1581 | <xs:pattern value="([Mm][Uu][Ll][Tt][Ii][Pp][Ll][Ee])?"></xs:pattern>
|
1559 | 1582 | </xs:restriction>
|
1560 | 1583 | </xs:simpleType>
|
| 1584 | + |
| 1585 | +<!-- readonly boolean --> |
| 1586 | +<xs:simpleType name="readonly_boolean"> |
| 1587 | + <xs:restriction base="xs:token"> |
| 1588 | + <xs:pattern value="([Rr][Ee][Aa][Dd][Oo][Nn][Ll][Yy])?"></xs:pattern> |
| 1589 | + </xs:restriction> |
| 1590 | +</xs:simpleType> |
1561 | 1591 |
|
1562 | 1592 | <!-- required boolean -->
|
1563 | 1593 | <xs:simpleType name="required_boolean">
|
|
0 commit comments