generate

indicates which alternation and sequence instantiations of a model class
may be referenced. By default, all variations are permitted.

Attribute Information

Used By

Element tei:classSpec

Source

<xs:attribute name="generate">
  <xs:annotation>
    <xs:documentation>indicates which alternation and sequence instantiations of a model class may be referenced. By default, all variations are permitted.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction>
      <xs:simpleType>
        <xs:list>
          <xs:simpleType>
            <xs:restriction base="xs:token">
              <xs:enumeration value="alternation">
                <xs:annotation>
                  <xs:documentation>members of the class are alternatives</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequence">
                <xs:annotation>
                  <xs:documentation>members of the class are to be provided in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptional">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided, in sequence, but are optional</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptionalRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence, but are optional.</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="alternation">
                <xs:annotation>
                  <xs:documentation>members of the class are alternatives</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequence">
                <xs:annotation>
                  <xs:documentation>members of the class are to be provided in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptional">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided, in sequence, but are optional</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptionalRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence, but are optional.</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="alternation">
                <xs:annotation>
                  <xs:documentation>members of the class are alternatives</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequence">
                <xs:annotation>
                  <xs:documentation>members of the class are to be provided in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptional">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided, in sequence, but are optional</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptionalRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence, but are optional.</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="alternation">
                <xs:annotation>
                  <xs:documentation>members of the class are alternatives</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequence">
                <xs:annotation>
                  <xs:documentation>members of the class are to be provided in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptional">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided, in sequence, but are optional</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptionalRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence, but are optional.</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="alternation">
                <xs:annotation>
                  <xs:documentation>members of the class are alternatives</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequence">
                <xs:annotation>
                  <xs:documentation>members of the class are to be provided in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptional">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided, in sequence, but are optional</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceOptionalRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence, but are optional.</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="sequenceRepeatable">
                <xs:annotation>
                  <xs:documentation>members of the class may be provided one or more times, in sequence</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:list>
      </xs:simpleType>
      <xs:minLength value="1"/>
      <xs:maxLength value="5"/>
    </xs:restriction>
  </xs:simpleType>
</xs:attribute>

Sample