<element name="territories" xmlns="http://relaxng.org/ns/structure/1.0"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <zeroOrMore>
    <element name="territory">
      <element name="territoryId">
        <text />
      </element>
      <optional>
        <element name="names">
          <zeroOrMore>
            <element name="name">
              <element name="languageId">
                <text />
              </element>
              <element name="trName">
                <text />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
      <optional>
        <element name="scripts">
          <zeroOrMore>
            <element name="script">
              <element name="scriptId">
                <text />
              </element>
              <element name="rank">
                <data type="nonNegativeInteger" />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
      <optional>
        <element name="locales">
          <zeroOrMore>
            <element name="locale">
              <element name="localeId">
                <text />
              </element>
              <element name="rank">
                <data type="nonNegativeInteger" />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
      <optional>
        <element name="languages">
          <zeroOrMore>
            <element name="language">
              <element name="languageId">
                <text />
              </element>
              <element name="rank">
                <data type="nonNegativeInteger" />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
      <optional>
        <element name="keyboards">
          <zeroOrMore>
            <element name="keyboard">
              <element name="keyboardId">
                <text />
              </element>
              <element name="rank">
                <data type="nonNegativeInteger" />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
      <optional>
        <element name="inputmethods">
          <zeroOrMore>
            <element name="inputmethod">
              <element name="inputmethodId">
                <text />
              </element>
              <element name="rank">
                <data type="nonNegativeInteger" />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
      <optional>
        <element name="consolefonts">
          <zeroOrMore>
            <element name="consolefont">
              <element name="consolefontId">
                <text />
              </element>
              <element name="rank">
                <data type="nonNegativeInteger" />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
      <optional>
        <element name="timezones">
          <zeroOrMore>
            <element name="timezone">
              <element name="timezoneId">
                <text />
              </element>
              <element name="rank">
                <data type="nonNegativeInteger" />
              </element>
            </element>
          </zeroOrMore>
        </element>
      </optional>
    </element>
  </zeroOrMore>
</element>
