<memberOf>

<memberOf> 親要素や親クラスを示す。 [23.4.3 Classification of Components]<a href="https://translate.tei-c.org/translate.html?edit=memberOf.xml"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-label="Translation out of date." viewBox="0 0 16 16" style="position:absolute; top:2px; right:2px; color:red"><title>Translation out of date.</title> <path d="M6.146 7.146a.5.5 0 0 1 .708 0L8 8.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1-.708.708L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 0 1 0-.708z"></path> <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"></path></svg></a>
モジュール tagdocs — Documentation Elements
属性
key⚓︎ 当該要素またはクラスが下位要素・下位クラスとなっているクラスの識 別子を示す。
状態 任意
データ型 teidata.name
mode⚓︎ 当該宣言が親モジュールに与える影響を示す。
状態 任意
データ型 teidata.enumerated
正当な値:
add
当該宣言は、現行定義に追加される。 [初期値]
delete
当該宣言と全子要素は、現行定義から外される。
max⚓︎ supplies the maximum number of times the element can occur in elements which use this model class in their content model
状態 任意
データ型 teidata.numeric
min⚓︎ supplies the minumum number of times the element must occur in elements which use this model class in their content model
状態 任意
データ型 teidata.numeric
上位
tagdocs: classes
下位
gaiji: g
character data
解説

複数のクラスに所属する要素またはクラスは、要素classesでま とめられた複数の要素memberOf elementをとる。ある要素がク ラスC1に属し、クラスC1はクラスC2に属する場合、クラスC1につい て記録するだけで、クラスC2を宣言する必要はない。

当該要素の内容として、クラスの所属関係に関する追加の注釈や解説が含 まれることもある。

<memberOf key="model.divLike"/>
<memberOf key="att.identified"/>

This element will appear in any content model which references model.divLike, and will have attributes defined in att.identified (in addition to any defined explicitly for this element).

Content model
<content>
 <macroRef key="macro.xtext"/>
</content>
宣言
<rng:element name="memberOf">
 <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="key">
   <rng:ref name="teidata.name"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="mode"
   a:defaultValue="add">

   <rng:choice>
    <rng:value>add</rng:value>
    <rng:value>delete</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="max">
   <rng:ref name="teidata.numeric"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="min">
   <rng:ref name="teidata.numeric"/>
  </rng:attribute>
 </rng:optional>
 <rng:ref name="macro.xtext"/>
</rng:element>
element memberOf
{
   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 key { teidata.name }?,
   attribute mode { "add" | "delete" }?,
   attribute max { teidata.numeric }?,
   attribute min { teidata.numeric }?,
   macro.xtext
}