例子: <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>
全部顯示 ⚓︎

<elementSpec> (fr)

<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>
全部顯示 ⚓︎

<elementSpec>

<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>
全部顯示 ⚓︎

<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>
全部顯示 ⚓︎

<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>
參考書目 全部顯示 ⚓︎

22.5.1.1 Defining Content Models: TEI

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

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

 </alternate>
</content>
參考書目 ⚓︎

22.5.1.1 Defining Content Models: TEI

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

  <elementRef key="ptr"/>
  <elementRef key="ref"/>
 </alternate>
</content>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

22.5.1.2 Defining Content Models: RELAX NG

<content>
 <rng:text/>
</content>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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

<content>
 <empty/>
</content>
參考書目 全部顯示 ⚓︎

<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>
參考書目 全部顯示 ⚓︎

<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>
參考書目 全部顯示 ⚓︎

<content> (fr)

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

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

 </sequence>
</content>
參考書目 全部顯示 ⚓︎

<alternate> (en)

<content>
 <alternate>
  <elementRef key="name"/>
  <elementRef key="persName"/>
 </alternate>
</content>
參考書目 全部顯示 ⚓︎

<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>
全部顯示 ⚓︎

<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>
全部顯示 ⚓︎

<textNode> (en)

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

  <textNode/>
  <elementRef key="hi"/>
  <elementRef key="seg"/>
 </alternate>
</content>
參考書目 全部顯示 ⚓︎

<anyElement> (en)

<content>
 <anyElement except="http://www.tei-c.org/ns/1.0"/>
</content>
參考書目 全部顯示 ⚓︎

<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>
參考書目 全部顯示 ⚓︎

<anyElement> (en)

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

  <textNode/>
  <anyElement require="http://www.tei-c.org/ns/Examples/1.0"/>
 </alternate>
</content>
參考書目 全部顯示 ⚓︎

<empty> (en)

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

  <empty/>
  <elementRef key="hi"/>
 </alternate>
</content>
參考書目 全部顯示 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 全部顯示 ⚓︎

23 Using the TEI


23.3.1.2 Modification of Content Models

<content>
 <macroRef key="macro.phraseSeq"/>
</content>
參考書目 ⚓︎

23.3.1.2 Modification of Content Models

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

 <content>
  <textNode/>
 </content>
</elementSpec>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎

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>
參考書目 ⚓︎