Exemple: <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> (en)

<elementSpec module="tagdocsident="code">
 <gloss/>
 <desc>contains literal code</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <textNode/>
 </content>
 <attList>
  <attDef ident="typeusage="opt">
   <desc>the language of the code</desc>
   <datatype>
    <dataRef key="teidata.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>
Toute la liste ⚓︎

<elementSpec>

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

 <desc>contient le code littéral</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <textNode/>
 </content>
 <attList>
  <attDef ident="typeusage="opt">
   <desc>la langue du code</desc>
   <datatype>
    <dataRef key="teidata.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>
Toute la liste ⚓︎

<elementSpec> (zh-TW)

<elementSpec module="tagdocsident="code">
 <gloss/>
 <desc>包含文字規則</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <textNode/>
 </content>
 <attList>
  <attDef ident="typeusage="opt">
   <desc>規則的表達方式</desc>
   <datatype>
    <dataRef key="teidata.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>
Toute la liste ⚓︎

<dataSpec> (en)

<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>
Toute la liste ⚓︎

<macroSpec> (en)

<macroSpec module="tei"
 ident="macro.phraseSeq">

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

   <textNode/>
   <classRef key="model.gLike"/>
   <classRef key="model.phrase"/>
   <classRef key="model.global"/>
  </alternate>
 </content>
</macroSpec>
bibliographie Toute la liste ⚓︎

22.5.1.1 Defining Content Models: TEI

<content>
 <alternate>
  <elementRef key="ptrminOccurs="1"
   maxOccurs="unbounded"/>

  <elementRef key="refminOccurs="1"
   maxOccurs="unbounded"/>

 </alternate>
</content>
bibliographie ⚓︎

22.5.1.1 Defining Content Models: TEI

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

  <elementRef key="ptr"/>
  <elementRef key="ref"/>
 </alternate>
</content>
bibliographie ⚓︎

22.5.1.1 Defining Content Models: TEI

<content>
 <alternate>
  <sequence>
   <elementRef key="sic"/>
   <elementRef key="corr"/>
  </sequence>
  <sequence>
   <elementRef key="orig"/>
   <elementRef key="reg"/>
  </sequence>
  <sequence>
   <elementRef key="abbr"/>
   <elementRef key="expan"/>
  </sequence>
 </alternate>
</content>
bibliographie ⚓︎

22.5.1.1 Defining Content Models: TEI

<content>
 <alternate>
  <sequence>
   <elementRef key="street"/>
   <elementRef key="placeName"/>
   <elementRef key="postCode"/>
   <elementRef key="countryminOccurs="0"
    maxOccurs="1"/>

  </sequence>
  <elementRef key="addrLineminOccurs="2"
   maxOccurs="4"/>

 </alternate>
</content>
bibliographie ⚓︎

22.5.1.2 Defining Content Models: RELAX NG

<content>
 <rng:text/>
</content>
bibliographie ⚓︎

22.5.1.2 Defining Content Models: RELAX NG

<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>
bibliographie ⚓︎

22.5.1.2 Defining Content Models: RELAX NG

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

22.6 Class Specifications

<content>
 <classRef key="model.hiLike"/>
</content>
bibliographie ⚓︎

22.6 Class Specifications

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

22.6 Class Specifications

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

<content> (en)

<content>
 <empty/>
</content>
bibliographie Toute la liste ⚓︎

<content> (en)

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

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

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

  </sequence>
 </alternate>
</content>
bibliographie Toute la liste ⚓︎

<content> (en)

<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>
bibliographie Toute la liste ⚓︎

<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>
bibliographie Toute la liste ⚓︎

<content> (zh-TW)

<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>
bibliographie Toute la liste ⚓︎

<sequence> (en)

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

 </sequence>
</content>
bibliographie Toute la liste ⚓︎

<alternate> (en)

<content>
 <alternate>
  <elementRef key="name"/>
  <elementRef key="persName"/>
 </alternate>
</content>
bibliographie Toute la liste ⚓︎

<dataRef> (en)

<dataSpec ident="data.integerExample">
 <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>
Toute la liste ⚓︎

<dataFacet> (en)

<dataSpec ident="data.integerExample">
 <desc>datatype used for attributes taking an integer value between 0 and 99</desc>
 <content>
  <dataRef name="nonNegativeInteger">
   <dataFacet name="maxInclusive"
    value="99"/>

   <dataFacet name="minInclusivevalue="0"/>
  </dataRef>
 </content>
</dataSpec>
Toute la liste ⚓︎

<textNode> (en)

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

  <textNode/>
  <elementRef key="hi"/>
  <elementRef key="seg"/>
 </alternate>
</content>
bibliographie Toute la liste ⚓︎

<anyElement> (en)

<content>
 <anyElement except="http://www.tei-c.org/ns/1.0"/>
</content>
bibliographie Toute la liste ⚓︎

<anyElement> (en)

<content>
 <anyElement minOccurs="1"
  maxOccurs="unbounded"
  require="http://www.w3.org/1998/Math/MathML http://www.tei-c.org/ns/Examples/1.0"/>

</content>
bibliographie Toute la liste ⚓︎

<anyElement> (en)

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

  <textNode/>
  <anyElement require="http://www.tei-c.org/ns/Examples/1.0"/>
 </alternate>
</content>
bibliographie Toute la liste ⚓︎

<empty> (en)

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

  <empty/>
  <elementRef key="hi"/>
 </alternate>
</content>
bibliographie Toute la liste ⚓︎

22.8.1 TEI customizations

<schemaSpec ident="example">
 <moduleRef key="header"/>
 <moduleRef key="teistructure"/>
 <elementSpec ident="headmode="change">
  <content>
   <macroRef key="macro.xtext"/>
  </content>
 </elementSpec>
</schemaSpec>
bibliographie ⚓︎

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>
bibliographie ⚓︎

3 Elements Available in All TEI Documents


<desc> (en)

<dataSpec module="tei"
 ident="teidata.point">

 <desc versionDate="2010-10-17"
  xml:lang="en">
defines the data type used to express a point in cartesian space.</desc>
 <content>
  <dataRef name="token"
   restriction="(-?[0-9]+(\.[0-9]+)?,-?[0-9]+(\.[0-9]+)?)"/>

 </content>
<!-- ... -->
</dataSpec>
bibliographie Toute la liste ⚓︎

23 Using the TEI


23.3.1.2 Modification of Content Models

<content>
 <macroRef key="macro.phraseSeq"/>
</content>
bibliographie ⚓︎

23.3.1.2 Modification of Content Models

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

 <content>
  <textNode/>
 </content>
</elementSpec>
bibliographie ⚓︎

23.5.1 Making a Unified ODD

<elementSpec ident="person">
<!-- ... -->
 <content>
  <alternate>
   <classRef key="model.pLike"
    minOccurs="1maxOccurs="unbounded"/>

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

    <classRef key="model.personPart"/>
    <classRef key="model.global"/>
   </alternate>
  </alternate>
 </content>
<!-- ... -->
</elementSpec>
bibliographie ⚓︎

23.5.1 Making a Unified ODD

<elementSpec ident="figure">
<!-- ... -->
 <content>
  <alternate minOccurs="0"
   maxOccurs="unbounded">

   <classRef key="model.pLike"/>
   <classRef key="model.global"/>
   <elementRef key="figure"/>
   <elementRef key="figDesc"/>
   <classRef key="model.graphicLike"/>
   <classRef key="model.headLike"/>
  </alternate>
 </content>
<!-- ... -->
</elementSpec>
bibliographie ⚓︎

23.5.2 Generating Schemas

<elementSpec module="drama"
 ident="performance">

<!-- ... -->
 <classes>
  <memberOf key="model.frontPart.drama"/>
 </classes>
 <content>
  <sequence>
   <alternate minOccurs="0"
    maxOccurs="unbounded">

    <classRef key="model.divTop"/>
    <classRef key="model.global"/>
   </alternate>
   <sequence minOccurs="1"
    maxOccurs="unbounded">

    <classRef key="model.common"/>
    <classRef key="model.global"
     minOccurs="0maxOccurs="unbounded"/>

   </sequence>
   <sequence minOccurs="0"
    maxOccurs="unbounded">

    <classRef key="model.divBottom"/>
    <classRef key="model.global"
     minOccurs="0maxOccurs="unbounded"/>

   </sequence>
  </sequence>
 </content>
<!-- ... -->
</elementSpec>
bibliographie ⚓︎

23.5.2 Generating Schemas

<elementSpec ident="sp">
<!-- ... -->
 <content>
  <sequence minOccurs="1maxOccurs="1">
   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

   <sequence minOccurs="0maxOccurs="1">
    <elementRef key="speaker"/>
    <classRef key="model.global"
     minOccurs="0maxOccurs="unbounded"/>

   </sequence>
  </sequence>
 </content>
<!-- ... -->
</elementSpec>
bibliographie ⚓︎

23.5.2 Generating Schemas

<elementSpec ident="sp">
<!-- ... -->
 <content>
  <sequence minOccurs="1maxOccurs="1">
   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

  </sequence>
 </content>
<!-- ... -->
</elementSpec>
bibliographie ⚓︎

23.5.4.1 Macros

<macroSpec module="tei"
 ident="macro.phraseSeq">

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

   <textNode/>
   <classRef key="model.gLike"/>
   <classRef key="model.phrase"/>
   <classRef key="model.global"/>
  </alternate>
 </content>
</macroSpec>
bibliographie ⚓︎

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>
  <macroRef key="macro.phraseSeq"/>
 </content>
</elementSpec>
bibliographie ⚓︎