choose

Element Information

Model

Children: otherwise, when

Used By

Element Group text-template-content

Source

<xs:element name="choose">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="when" maxOccurs="unbounded">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:group ref="template-content"/>
          </xs:choice>
          <xs:attribute name="test" type="xs:string" use="required"/>
          <!-- type : type of "test" should be stx-expression -->
        </xs:complexType>
      </xs:element>
      <xs:element name="otherwise" minOccurs="0">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:group ref="template-content"/>
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

Sample