Skip to content

<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.

Module tagdocsTDcrystalsTDCLA

Attributes

@typeindicates whether this is a model class or an attribute class
Status
Required
Datatype
teidata.enumerated
Legal values
model
(content model) members of this class appear in the same content models
atts
(attributes) members of this class share common attributes
<div type="verse">
  <head>Night in Tarras</head>
  <lg type="stanza">
    <l>At evening tramping on the hot white road</l>
    <l>…</l>
  </lg>
  <lg type="stanza">
    <l>A wind sprang up from nowhere as the sky</l>
    <l>…</l>
  </lg>
</div>
@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 teidata.enumerated separated by whitespace
Legal values
alternation
members of the class are alternatives
sequence
members of the class are to be provided in sequence
sequenceOptional
members of the class may be provided, in sequence, but are optional
sequenceOptionalRepeatable
members of the class may be provided one or more times, in sequence, but are optional.
sequenceRepeatable
members of the class may be provided one or more times, in sequence

Classes and content

Member of
May contain
Contained by

cmc

linking

namesdates

spoken

verse

Example

<classSpec module="tei" type="model" ident="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>

Content model

<content>
    <sequence>
        <alternate minOccurs="0" maxOccurs="unbounded">
          <classRef key="model.identSynonyms"/>
          <classRef key="model.descLike"/>
        </alternate>
        <elementRef key="classes" minOccurs="0"/>
        <elementRef key="constraintSpec" minOccurs="0" maxOccurs="unbounded"/>
        <elementRef key="attList" minOccurs="0"/>
        <elementRef key="exemplum" minOccurs="0" maxOccurs="unbounded"/>
        <elementRef key="remarks" minOccurs="0" maxOccurs="unbounded"/>
        <elementRef key="listRef" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </content>