Example: <content> (content model)

These search results reproduce every example of the use of <content> 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 <content> 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="tagdocsident="code">
 <gloss/>
 <desc>contains literal code</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <rng:text/>
 </content>
 <attList>
  <attDef ident="typeusage="opt">
   <desc>the language of the code</desc>
   <datatype>
    <rng:ref name="data.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>

<elementSpec>

<elementSpec module="tagdocs"
 xml:id="fr_Codeident="code">

 <desc>contient le code littéral</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <rng:text/>
 </content>
 <attList>
  <attDef ident="typeusage="opt">
   <desc>la langue du code</desc>
   <datatype>
    <rng:ref name="data.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>

<elementSpec>

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

<dataSpec>

<dataSpec ident="teidata.pointer">
 <desc versionDate="2013-01-19"
  xml:lang="en">
defines the range of
   attribute values used to provide a single URI, absolute or relative,
   pointing to some other resource, either within the current document
   or elsewhere.</desc>
 <content>
  <dataRef name="anyURI"/>
 </content>
</dataSpec>

<macroSpec>

<macroSpec module="teitype="pe"
 ident="macro.phraseSeq">

 <content>
  <rng:zeroOrMore>
   <rng:choice>
    <rng:text/>
    <rng:ref name="model.gLike"/>
    <rng:ref name="model.phrase"/>
    <rng:ref name="model.global"/>
   </rng:choice>
  </rng:zeroOrMore>
 </content>
</macroSpec>

22.5.1 Defining Content Models

<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <classRef key="model.gLike"/>
  <textNode/>
 </alternate>
</content>

22.5.1 Defining Content Models

<content>
 <sequence>
  <elementRef key="fileDesc"/>
  <classRef key="model.teiHeaderPart"
   minOccurs="0maxOccurs="unboundedexpand="alternate"/>

  <elementRef key="revisionDesc"
   minOccurs="0"/>

 </sequence>
</content>

22.5.2 RELAX NG Content Models

<content>
 <rng:text/>
</content>

22.5.2 RELAX NG Content Models

<content>
 <rng:group>
  <rng:ref name="fileDesc"/>
  <rng:zeroOrMore>
   <rng:ref name="model.teiHeaderPart"/>
  </rng:zeroOrMore>
  <rng:optional>
   <rng:ref name="revisionDesc"/>
  </rng:optional>
 </rng:group>
</content>

22.5.2 RELAX NG Content Models

<content autoPrefix="false">
 <rng:choice>
  <rng:ref name="TEI_ident"/>
  <rng:ref name="ident"/>
 </rng:choice>
</content>

22.6 Class Specifications

<content>
 <classRef key="model.hiLike"/>
</content>

22.6 Class Specifications

<content>
 <alternate>
  <elementRef key="hi"/>
  <elementRef key="it"/>
  <elementRef key="bo"/>
 </alternate>
</content>

22.6 Class Specifications

<content>
 <sequence>
  <elementRef key="hi"/>
  <elementRef key="it"/>
  <elementRef key="bo"/>
 </sequence>
</content>

<content>

<content/>

<content>

<content>
 <alternate>
  <classRef key="model.pLike"
   maxOccurs="unbounded"/>

  <sequence>
   <elementRef key="summaryminOccurs="0"
    maxOccurs="1"/>

   <elementRef key="msItem"
    maxOccurs="unbounded"/>

  </sequence>
 </alternate>
</content>

<content>

<content>
 <rng:choice>
  <rng:oneOrMore>
   <rng:ref name="model.pLike"/>
  </rng:oneOrMore>
  <rng:group>
   <rng:optional>
    <rng:ref name="summary"/>
   </rng:optional>
   <rng:oneOrMore>
    <rng:ref name="msItem"/>
   </rng:oneOrMore>
  </rng:group>
 </rng:choice>
</content>

<content>

<content>
 <rng:choice>
  <rng:oneOrMore>
   <rng:ref name="model.pLike"/>
  </rng:oneOrMore>
  <rng:group>
   <rng:optional>
    <rng:ref name="summary"/>
   </rng:optional>
   <rng:oneOrMore>
    <rng:ref name="msItem"/>
   </rng:oneOrMore>
  </rng:group>
 </rng:choice>
</content>

<content>

<content>
 <rng:choice>
  <rng:oneOrMore>
   <rng:ref name="model.pLike"/>
  </rng:oneOrMore>
  <rng:group>
   <rng:optional>
    <rng:ref name="summary"/>
   </rng:optional>
   <rng:oneOrMore>
    <rng:ref name="msItem"/>
   </rng:oneOrMore>
  </rng:group>
 </rng:choice>
</content>

<sequence>

<content>
 <sequence>
  <alternate>
   <elementRef key="name"/>
   <elementRef key="persName"/>
  </alternate>
  <elementRef key="placeNameminOccurs="0"
   maxOccurs="5"/>

 </sequence>
</content>

<alternate>

<content>
 <alternate>
  <elementRef key="name"/>
  <elementRef key="persName"/>
 </alternate>
</content>

<dataRef>

<dataSpec ident="data.percentage">
 <desc>datatype used for attributes taking an integer value between 0 and 99</desc>
 <content>
  <dataRef name="nonNegativeInteger"
   restriction="[0-9][0-9]?"/>

 </content>
</dataSpec>

<textNode>

<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <elementRef key="hi"/>
  <elementRef key="seg"/>
 </alternate>
</content>

22.8.1 TEI customizations

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

22.8.2 Combining TEI and Non-TEI Modules

<moduleRef url="svg11.rng">
 <content>
  <rng:define name="TEI_model.graphicLike"
   combine="choice">

   <rng:ref name="svg"/>
  </rng:define>
 </content>
</moduleRef>

23 Using the TEI


23.3.1.3 Modification of Content Models

<content>
 <rng:ref name="macro.phraseSeq"/>
</content>

23.3.1.3 Modification of Content Models

<elementSpec ident="termmodule="core"
 mode="change">

 <content>
  <rng:text/>
 </content>
</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="subtypemode="delete"/>
 </attList>
</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.4.1 Macros

<macroSpec module="teitype="pe"
 ident="macro.phraseSeq">

 <content>
  <rng:zeroOrMore>
   <rng:choice>
    <rng:text/>
    <rng:ref name="model.gLike"/>
    <rng:ref name="model.phrase"/>
    <rng:ref name="model.global"/>
   </rng:choice>
  </rng:zeroOrMore>
 </content>
</macroSpec>

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>