~srushe/cricsheet-xml

d2ec37d83a5952db10d5bdb731ee28c2df9fe705 — Stephen Rushe 2 months ago be40bc8
Add balls_per_over, lineups, and registry to schema
1 files changed, 41 insertions(+), 0 deletions(-)

M schema.xsd
M schema.xsd => schema.xsd +41 -0
@@ 14,6 14,7 @@
        <xs:element name="info">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:int" name="balls_per_over"/>
              <xs:element name="bowl_out" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>


@@ 38,6 39,26 @@
                </xs:complexType>
              </xs:element>
              <xs:element type="xs:string" name="gender"/>
              <xs:element name="lineups">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="lineup" minOccurs="1" maxOccurs="2">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="team"/>
                          <xs:element name="players">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element type="xs:string" name="player" minOccurs="11" maxOccurs="13"/>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element type="xs:string" name="match_type"/>
              <xs:element type="xs:int" name="match_type_number" minOccurs="0"/>
              <xs:element type="xs:boolean" name="neutral_venue" minOccurs="0"/>


@@ 69,6 90,26 @@
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="registry">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="people">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="person" minOccurs="2" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element type="xs:string" name="name"/>
                                <xs:element type="xs:string" name="identifier"/>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="supersubs" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>