2.3.1.11 Repeating Section Control

A repeating section control that is bound to a repeating group that contains no other bound controls MUST have the following complex type XSD definition:

 <xsd:element name="group1">
     <xsd:complexType>
         <xsd:sequence>
             <xsd:element ref="my:group2" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
     </xsd:complexType>
 </xsd:element>
 <xsd:element name="group2">
     <xsd:complexType>
         <xsd:sequence/>
     </xsd:complexType>
 </xsd:element>

The previous definition assumes that the element name is "group1" and the repeating group name is "group2".

A repeating section control that is bound to a repeating group that contains a textbox 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 complex type XSD definition:

   <xsd:element name="group1">
       <xsd:complexType>
           <xsd:sequence>
               <xsd:element ref="my:group2" minOccurs="0" maxOccurs="unbounded"/>
           </xsd:sequence>
       </xsd:complexType>
   </xsd:element>
   <xsd:element name="group2">
       <xsd:complexType>
           <xsd:sequence>
               <xsd:element ref="my:field1" minOccurs="0"/>
           </xsd:sequence>
       </xsd:complexType>
   </xsd:element>
   <xsd:element name="field1" type="xsd:string"/>

The previous definition assumes the element name for the repeating section control is "group1", the repeating group name is "group2", and the element name for the textbox control is "my:field1".