2.3.1.16 Text Box Control

A text box control that is not required to contain data and is bound to an XML element with data type set to "string", and for which no constraining facets have been set, MUST have the following XSD definition, assuming that the element name is "field1":

 <xsd:element name="field1" type="xsd:string"/>

A text box control that is required to contain data and is bound to an XML element with data type set to "string", and for which an xsd:minLength constraining facet has been set, MUST have the following XSD definition, assuming that the element name is "field1":

 <xsd:element name="field1" type="my:requiredString"/>
 <xsd:simpleType name="requiredString">
     <xsd:restriction base="xsd:string">
         <xsd:minLength value="1"/>
     </xsd:restriction>
 </xsd:simpleType>

A text box control SHOULD be bound to a field with one of the following XSD data types, for which any valid constraining facets MAY also be set:

  • string

  • integer

  • double

  • boolean

  • anyURI

  • date

  • time

  • dateTime