Example: <classes>

These search results reproduce every example of the use of <classes> in the Guidelines, including all localised and translated versions. In some cases, the examples have been drawn from discussion of other elements in the Guidelines and illustrating the use of <classes> is not the main focus of the passage in question. In other cases, examples may be direct translations of each other, and hence identical from the perspective of their encoding.

22 Documentation Elements


<elementSpec>

<elementSpec module="tagdocs" ident="code">
 <equiv/>
 <gloss/>
 <desc>contains literal code</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <rng:text/>
 </content>
 <attList>
  <attDef ident="type" usage="opt">
   <equiv/>
   <desc>the language of the code</desc>
   <datatype>
    <rng:ref name="data.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>

<elementSpec>

<elementSpec module="tagdocs" ident="code">
 <equiv/>
 <gloss/>
 <desc>包含文字規則</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <rng:text/>
 </content>
 <attList>
  <attDef ident="type" usage="opt">
   <equiv/>
   <desc>規則的表達方式</desc>
   <datatype>
    <rng:ref name="data.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>

<classSpec>

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

<classSpec>

<classSpec module="tei" type="model" ident="model.segLike">
 <desc>匯集用於隨機分割的元素</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>

22.4.3 Classification of Components

<classes>
 <memberOf key="model.phrase.xml"/>
</classes>

<classes>

<classes>
 <memberOf key="model.qLike"/>
 <memberOf key="att.declarable"/>
</classes>

22.4.6 Element Classes

<classes>
 <memberOf key="model.hiLike"/>
</classes>

22.4.6 Element Classes

<classSpec type="model" ident="model.hiLike">
 <desc>groups phrase-level elements related to highlighting that have
   no specific semantics </desc>
 <classes>
  <memberOf key="model.highlighted"/>
 </classes>
</classSpec>

22.5 Building a Schema

<schemaSpec ident="example">
 <moduleRef key="teiheader"/>
 <moduleRef key="verse"/>
 <elementSpec ident="soundClip">
  <classes>
   <memberOf key="model.pPart.data"/>
  </classes>
 </elementSpec>
</schemaSpec>

23 Using the TEI


23.2.1.5 Class Modification

<elementSpec
  ident="eg"
  module="tagdocs"
  mode="change"
  ns="http://example.com/ns">

 <classes mode="change">
  <memberOf key="att.typed"/>
 </classes>
</elementSpec>

23.2.1.5 Class Modification

<elementSpec
  ident="term"
  module="core"
  mode="change"
  ns="http://example.com/ns">

 <classes mode="change">
  <memberOf key="att.declaring" mode="delete"/>
 </classes>
</elementSpec>

23.2.1.5 Class Modification

<elementSpec
  ident="term"
  module="core"
  mode="change"
  ns="http://example.com/ns">

 <classes mode="replace">
  <memberOf key="att.interpLike"/>
 </classes>
</elementSpec>

23.2.1.6 Addition of New Elements

<elementSpec ident="myBibl" mode="add" ns="http://www.example.com/ns/">
 <classes>
  <memberOf key="model.biblLike"/>
 </classes>
<!-- other parts of the new declaration here -->
</elementSpec>

23.4.1 Making a Unified ODD

<elementSpec ident="p">
 <classes>
  <memberOf key="att.typed"/>
 </classes>
 <content>
<!--…-->
 </content>
</elementSpec>

23.4.1 Making a Unified ODD

<elementSpec ident="p">
 <classes>
  <memberOf key="att.typed"/>
 </classes>
 <content>
<!--… -->
 </content>
 <attList>
  <attDef ident="subtype" mode="delete"/>
 </attList>
</elementSpec>

23.4.2 Generating Schemas

<elementSpec module="drama" ident="performance">
<!-- ... -->
 <classes>
  <memberOf key="model.frontPart.drama"/>
 </classes>
 <content>
  <rng:group>
   <rng:zeroOrMore>
    <rng:choice>
     <rng:ref name="model.divTop"/>
     <rng:ref name="model.global"/>
    </rng:choice>
   </rng:zeroOrMore>
   <rng:oneOrMore>
    <rng:group>
     <rng:ref name="model.common"/>
    </rng:group>
    <rng:zeroOrMore>
     <rng:ref name="model.global"/>
    </rng:zeroOrMore>
   </rng:oneOrMore>
   <rng:zeroOrMore>
    <rng:ref name="model.divBottom"/>
    <rng:zeroOrMore>
     <rng:ref name="model.global"/>
    </rng:zeroOrMore>
   </rng:zeroOrMore>
  </rng:group>
 </content>
<!-- ... -->
</elementSpec>

23.4.5 Making a DTD

<elementSpec module="namesdates" ident="faith">
 <desc>specifies the faith, religion, or belief set of a person.</desc>
 <classes>
  <memberOf key="model.persTraitLike"/>
  <memberOf key="att.editLike"/>
  <memberOf key="att.datable"/>
 </classes>
 <content>
  <rng:ref name="macro.phraseSeq"/>
 </content>
</elementSpec>