2.3.1.10 Option Button Control

An option button 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"/>

An option button 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>

An option button control SHOULD be bound to a field (3) 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