<classSpec>

<classSpec> (class specification) contains reference information for a TEI element class; that is a group of elements which appear together in content models, or which share some common attribute, or both.
Moduletagdocs — 22 Documentation Elements
Attributes [att.identified ]
typeindicates whether this is a model class or an attribute class
Status Required
Legal values are:
model(content model) members of this class appear in the same content models
atts(attributes) members of this class share common attributes
generateindicates which alternation and sequence instantiations of a model class may be referenced. By default, all variations are permitted.
Status Optional
Datatype 1–5 occurrences of
data.enumerated
separated by whitespace
Legal values are:
alternationmembers of the class are alternatives
sequencemembers of the class are to be provided in sequence
sequenceOptionalmembers of the class may be provided, in sequence, but are optional
sequenceOptionalRepeatablemembers of the class may be provided one or more times, in sequence, but are optional.
sequenceRepeatablemembers of the class may be provided one or more times, in sequence
Declaration
element classSpec
{
   att.global.attributes,
   att.identified.attributes,
   attribute type { "model" | "atts" },
   attribute generate
   {
      list
      {
         (
            "alternation"
          | "sequence"
          | "sequenceOptional"
          | "sequenceOptionalRepeatable"
          | "sequenceRepeatable"
         ),
         (
            "alternation"
          | "sequence"
          | "sequenceOptional"
          | "sequenceOptionalRepeatable"
          | "sequenceRepeatable"
         )*
      }
   }?,
   ( model.glossLike*, classes?, attList?, exemplum*, remarks*, listRef* )
}
Example
<classSpec module="teitype="modelident="model.segLike">
 <desc>groups elements used for arbitrary segmentation. </desc>
 <classes>
  <memberOf key="model.phrase"/>
 </classes>
 <remarks>
  <p>The principles on which segmentation is carried out, and
     any special codes or attribute values used, should be defined explicitly
     in the <gi>segmentation</gi> element of the <gi>encodingDesc</gi> within
     the associated TEI header.</p>
 </remarks>
</classSpec>
Contained by model.oddDecl
May contain