: <elementSpec> (element specification)

These search results reproduce every example of the use of <elementSpec> 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 <elementSpec> 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


22.2 Modules and Schemas

<p>This module contains three red elements:
<specGrp xml:id="RED">
  <elementSpec ident="beetroot">
<!-- ... -->
  </elementSpec>
  <elementSpec ident="east">
<!-- ... -->
  </elementSpec>
  <elementSpec ident="rose">
<!-- ... -->
  </elementSpec>
 </specGrp>
and two blue ones:
<specGrp xml:id="BLUE">
  <elementSpec ident="sky">
<!-- ... -->
  </elementSpec>
  <elementSpec ident="bayou">
<!-- ... -->
  </elementSpec>
 </specGrp>
</p>

<specGrp>

<specGrp xml:id="xDAILC">
 <elementSpec ident="s">
<!-- ... -->
 </elementSpec>
 <elementSpec ident="cl">
<!-- ... -->
 </elementSpec>
 <elementSpec ident="w">
<!-- ... -->
 </elementSpec>
 <elementSpec ident="m">
<!-- ... -->
 </elementSpec>
 <elementSpec ident="c">
<!-- ... -->
 </elementSpec>
</specGrp>

<specGrp>

<specGrp xml:id="fr_xDAILC">
 <elementSpec ident="s"/>
 <elementSpec ident="cl"/>
 <elementSpec ident="w"/>
 <elementSpec ident="m"/>
 <elementSpec ident="c"/>
</specGrp>

<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" xml:id="fr_Code" ident="code">
 <equiv/>
 <gloss/>
 <desc>contient le code littéral</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <rng:text/>
 </content>
 <attList>
  <attDef ident="type" usage="opt">
   <equiv/>
   <desc>la langue du 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>

22.4.1 Description of Components

<elementSpec module="drama" ident="actor">
 <desc>Name of an actor appearing within a cast list.</desc>
 <desc xml:lang="ja"> 登場人物リスト中にある役者名を示す.</desc>
 <desc xml:lang="it">nome di un attore che appare nella lista dei personaggi.</desc>
<!-- ... -->
</elementSpec>

22.4.1 Description of Components

<elementSpec module="core" ident="foreign">
<!--... -->
 <remarks>
  <p>This element is intended for use only where no other element
     is available to mark the phrase or words concerned. The global
  <att>xml:lang</att> attribute should be used in preference to this element
     where it is intended to mark the language of the whole of some text
     element.</p>
  <p>The <gi>distinct</gi> element may be used to identify phrases
     belonging to sublanguages or registers not generally regarded as true
     languages.</p>
 </remarks>
<!--... -->
</elementSpec>

<equiv>

<elementSpec ident="hi" mode="change">
 <equiv name="BOLD"/>
 <desc>bold typography</desc>
 <attList>
  <attDef ident="rend">
   <valList>
    <valItem ident="bold"/>
   </valList>
  </attDef>
 </attList>
</elementSpec>
<elementSpec ident="bo" mode="add">
 <equiv name="BOLD" uri="http://www.typesrus.com/bold"/>
</elementSpec>

<equiv>

<elementSpec ident="hi" mode="change">
 <equiv name="BOLD"/>
 <desc>caractères gras</desc>
 <attList>
  <attDef ident="rend">
   <valList>
    <valItem ident="bold"/>
   </valList>
  </attDef>
 </attList>
</elementSpec>
<elementSpec ident="bo" mode="add">
 <equiv name="BOLD" uri="http://www.typesrus.com/bold"/>
</elementSpec>

<equiv>

<elementSpec ident="hi" mode="change">
 <equiv name="BOLD"/>
 <desc>粗體印刷</desc>
 <attList>
  <attDef ident="rend">
   <valList>
    <valItem ident="bold"/>
   </valList>
  </attDef>
 </attList>
</elementSpec>
<elementSpec ident="bo" mode="add">
 <equiv name="BOLD" uri="http://www.typesrus.com/bold"/>
</elementSpec>

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>

22.5 Building a Schema

<schemaSpec ident="example">
 <moduleRef key="teiheader"/>
 <moduleRef key="teistructure"/>
 <elementSpec ident="head" mode="change">
  <content>
   <rng:ref name="macro.xtext"/>
  </content>
 </elementSpec>
</schemaSpec>

3 Elements Available in All TEI Documents


3.3.4 Terms, Glosses, Equivalents, and Descriptions

<elementSpec module="linking" ident="ab">
 <gloss>anonymous block</gloss>
<!--... -->
</elementSpec>

3.3.4 Terms, Glosses, Equivalents, and Descriptions

<elementSpec module="namesdates" ident="death">
 <equiv name="E69" uri="http://cidoc.ics.forth.gr/"/>
 <desc>
<!--... -->
 </desc>
</elementSpec>

3.3.4 Terms, Glosses, Equivalents, and Descriptions

<elementSpec ident="bo" ns="http://www.example.com/ns/notTEI">
 <equiv
   filter="http://www.example.com/equiv-filter.xsl"
   mimeType="text/xsl"
   name="bold"/>

 <gloss>bold</gloss>
 <desc>contains a sequence of characters rendered in a bold face.</desc>
<!-- ... -->
</elementSpec>

3.3.4 Terms, Glosses, Equivalents, and Descriptions

<elementSpec ident="abbr" mode="change">
 <altIdent xml:lang="de">Abkürzung</altIdent>
<!--...-->
</elementSpec>

3.3.4 Terms, Glosses, Equivalents, and Descriptions

<elementSpec ident="graphic" mode="change">
 <attList>
  <attDef mode="change" ident="url">
   <altIdent>href</altIdent>
  </attDef>
<!-- .... -->
 </attList>
</elementSpec>

3.3.4 Terms, Glosses, Equivalents, and Descriptions

<elementSpec module="core" ident="foreign">
<!--... -->
 <desc>identifies a word or phrase as belonging to some language other
   than that of the surrounding text. </desc>
<!--... -->
</elementSpec>

7 Performance Texts


7.2.4 Stage Directions

<schemaSpec ident="myDrama">
 <moduleRef key="core"/>
 <moduleRef key="tei"/>
 <moduleRef key="structure"/>
 <moduleRef key="header"/>
 <moduleRef key="drama"/>
 <elementSpec ident="stage" mode="change">
  <attList>
   <attDef ident="type" mode="replace">
    <valList type="closed">
     <valItem ident="setting">
      <desc>describes the set</desc>
     </valItem>
     <valItem ident="blocking">
      <desc>describes movement across stage, position, etc.</desc>
     </valItem>
     <valItem ident="business">
      <desc>describes movement other than blocking</desc>
     </valItem>
     <valItem ident="delivery">
      <desc>describes how the line is said</desc>
     </valItem>
     <valItem ident="motivation">
      <desc>describes character's emotional state or through line</desc>
     </valItem>
    </valList>
   </attDef>
  </attList>
 </elementSpec>
</schemaSpec>

13 Names, Dates, People, and Places


13.3.2 The Person Element

<elementSpec ident="person" module="namesdates" mode="change">
 <attList>
  <attDef mode="replace" ident="age">
   <datatype>
    <rng:ref name="data.enumerated"/>
   </datatype>
   <valList type="closed">
    <valItem ident="child">
     <desc>less than 18 years of age</desc>
    </valItem>
    <valItem ident="adult">
     <desc>18 to 65 years of age</desc>
    </valItem>
    <valItem ident="retired">
     <desc>over 65 years of age</desc>
    </valItem>
   </valList>
  </attDef>
 </attList>
</elementSpec>

23 Using the TEI


23.3.1.1 Deletion of Elements

<elementSpec ident="note" module="core" mode="delete"/>

23.3.1.1 Deletion of Elements

<schemaSpec ident="mySchema">
 <moduleRef key="core"/>
<!-- other modules used by this schema -->
 <elementSpec ident="note" module="core" mode="delete"/>
</schemaSpec>

23.3.1.2 Renaming of Elements

<elementSpec ident="note" module="core" mode="change">
 <altIdent>annotation</altIdent>
</elementSpec>

23.3.1.3 Modification of Content Models

<elementSpec ident="term" module="core" mode="change">
 <content>
  <rng:text/>
 </content>
</elementSpec>

23.3.1.4 Modification of Attribute and Attribute Value Lists

<elementSpec ident="eg" module="tagdocs" mode="change">
 <attList>
  <attDef
    ident="source"
    mode="add"
    ns="http://www.example.com/ns/nonTEI">

   <desc>specifies the source of an example by pointing to a
       single bibliographic reference for it</desc>
   <datatype maxOccurs="1">
    <rng:ref name="data.pointer"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>

23.3.1.4 Modification of Attribute and Attribute Value Lists

<elementSpec ident="eg" module="tagdocs" mode="change">
 <attList>
  <attDef
    ident="source"
    ns="http://www.example.com/ns/notTEI"
    mode="add">

   <desc>specifies the source of an example by supplying one of three
       predefined codes for it.</desc>
   <datatype maxOccurs="1">
    <rng:ref name="data.word"/>
   </datatype>
   <valList type="closed">
    <valItem ident="A">
     <desc>Examples taken from the A-list</desc>
    </valItem>
    <valItem ident="B">
     <desc>Examples taken from the B-list</desc>
    </valItem>
    <valItem ident="C">
     <desc>Examples taken from the C-list</desc>
    </valItem>
   </valList>
  </attDef>
 </attList>
</elementSpec>

23.3.1.5 Class Modification

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

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

23.3.1.5 Class Modification

<elementSpec ident="term" module="core" mode="change">
 <classes mode="change">
  <memberOf key="att.declaring" mode="delete"/>
 </classes>
</elementSpec>

23.3.1.5 Class Modification

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

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

23.3.1.6 Addition of New Elements

<elementSpec
  ident="myBibl"
  mode="add"
  ns="http://www.example.com/ns/notTEI">

 <classes>
  <memberOf key="model.biblLike"/>
 </classes>
<!-- other parts of the new declaration here -->
</elementSpec>

23.3.2 Modification and Namespaces

<elementSpec ident="p" mode="change">
 <attList>
  <attDef ident="topic" mode="add" ns="http://www.example.org/ns/nonTEI">
   <desc>indicates the topic of a TEI paragraph</desc>
   <datatype>
<!-- ... -->
   </datatype>
  </attDef>
 </attList>
</elementSpec>

23.5.1 Making a Unified ODD

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

23.5.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.5.1 Making a Unified ODD

<elementSpec ident="p">
 <desc>marks paragraphs in prose.</desc>
<!--…-->
</elementSpec>

23.5.1 Making a Unified ODD

<elementSpec ident="p" mode="change">
 <desc xml:lang="es">marca párrafos en prosa.</desc>
<!--…-->
</elementSpec>

23.5.1 Making a Unified ODD

<elementSpec ident="person">
<!--…-->
 <content>
  <rng:choice>
   <rng:oneOrMore>
    <rng:ref name="model.pLike"/>
   </rng:oneOrMore>
   <rng:zeroOrMore>
    <rng:choice>
     <rng:ref name="model.personPart"/>
     <rng:ref name="model.global"/>
    </rng:choice>
   </rng:zeroOrMore>
  </rng:choice>
 </content>
<!--…-->
</elementSpec>

23.5.1 Making a Unified ODD

<elementSpec ident="figure">
<!--…-->
 <content>
  <rng:zeroOrMore>
   <rng:choice>
    <rng:ref name="model.pLike"/>
    <rng:ref name="model.global"/>
    <rng:ref name="figure"/>
    <rng:ref name="figDesc"/>
    <rng:ref name="model.graphicLike"/>
    <rng:ref name="model.headLike"/>
   </rng:choice>
  </rng:zeroOrMore>
 </content>
<!--…-->
</elementSpec>

23.5.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.5.2 Generating Schemas

<elementSpec ident="sp">
<!--…-->
 <content>
  <rng:zeroOrMore>
   <rng:ref name="model.global"/>
  </rng:zeroOrMore>
  <rng:optional>
   <rng:ref name="speaker"/>
   <rng:zeroOrMore>
    <rng:ref name="model.global"/>
   </rng:zeroOrMore>
  </rng:optional>
 </content>
<!--…-->
</elementSpec>

23.5.2 Generating Schemas

<elementSpec ident="sp">
<!--…-->
 <content>
  <rng:zeroOrMore>
   <rng:ref name="model.global"/>
  </rng:zeroOrMore>
  <rng:zeroOrMore>
   <rng:ref name="model.global"/>
  </rng:zeroOrMore>
 </content>
<!--…-->
</elementSpec>

23.5.3 Names and Documentation in Generated Schemas

<schemaSpec ident="test" prefix="tei_">
 <elementSpec ident="sp">
<!--...-->
 </elementSpec>
</schemaSpec>

23.5.3 Names and Documentation in Generated Schemas

<elementSpec module="core" ident="head">
 <equiv/>
 <gloss>heading</gloss>
 <gloss xml:lang="fr">en-tête</gloss>
 <gloss xml:lang="es">encabezamiento</gloss>
 <gloss xml:lang="it">titolo</gloss>
<!-- ... -->
</elementSpec>

23.5.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.persStateLike"/>
  <memberOf key="att.editLike"/>
  <memberOf key="att.datable"/>
 </classes>
 <content>
  <rng:ref name="macro.phraseSeq"/>
 </content>
</elementSpec>