<content>

<content> (内容モデル) 現在の要素(あるいは他の構造)に期待される内容モデルの宣言を含む。 [23.5 Element Specifications]
モジュール tagdocs — Documentation Elements
属性
autoPrefix⚓︎ 名前衝突の可能性を避けるために、 パターン名 [pattern name] に生成元のRELAX NGスキーマソースに応じた接頭辞を自動的に付けるかどうかを制御する。
状態 任意
データ型 teidata.truthValue
正当な値:
true
参照された個々の名前。 たとえば、ある内容モデルの中での <rng:ref> 要素には自動的にその時点のschemaSpecprefix属性の値が付く。 [初期値]
false
No prefixes are added: any prefix required by the value of the prefix attribute on the current schemaSpec must therefore be supplied explicitly, as appropriate.
上位
下位 ANY
解説

content要素の子要素を一つだけ持つことが要求される。もし複数のRELAX NG 要素が求められる場合、<rng:div>に含まれるようにしなければならない。

This sample content element indicates that the element being specified has no content:

<content>
 <empty/>
</content>

This content element defines a content model, expressed directly in the TEI ODD language, that allows either a sequence of paragraphs or a series of msItem elements optionally preceded by a summary:

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

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

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

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

This sample content element defines a content model, expressed in the RELAX NG schema language, that allows either a sequence of paragraphs or a series of msItem elements optionally preceded by a summary:

<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 model
<content>
 <alternate>
  <elementRef key="valListminOccurs="1"
   maxOccurs="1"/>

  <classRef key="model.contentPart"
   minOccurs="1maxOccurs="1"/>

  <anyElement minOccurs="1maxOccurs="1"
   require="http://relaxng.org/ns/compatibility/annotations/1.0 http://relaxng.org/ns/structure/1.0"/>

 </alternate>
</content>
宣言
<rng:element name="content">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:optional>
  <rng:attribute name="autoPrefix"
   a:defaultValue="true">

   <rng:choice>
    <rng:value>true</rng:value>
    <rng:value>false</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:choice>
  <rng:ref name="valList"/>
  <rng:ref name="model.contentPart"/>
  <rng:ref name="anyElement_content_3"/>
 </rng:choice>
</rng:element>
element content
{
   att.global.attributes,
   att.global.analytic.attributes,
   att.global.change.attributes,
   att.global.facs.attributes,
   att.global.linking.attributes,
   att.global.rendition.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   attribute autoPrefix { "true" | "false" }?,
   ( valList | model.contentPart | anyElement_content_3 )
}