<egXML> [http://www.tei-c.org/ns/Examples]

<egXML> (example of XML) 要素や属性の使用例を示す,整形式XMLデータによる用例をひとつ含む.要 素egXMLが当該用例の根要素になる. [22.1.1 Phrase Level Terms]
モジュールtagdocs — 22 Documentation Elements
属性att.global (@xml:id, @n, @xml:lang, @rend, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change))
validindicates the intended validity of the example with respect to a schema.
状態 任意
データ型

<rng:ref name="data.enumerated"/>
data.enumerated
正当な値:
true
the example is intended to be fully valid, assuming that its root element, or a provided root element, could have been used as a possible root element in the schema concerned. [初期値]
feasible
the example could be transformed into a valid document by inserting any number of valid attributes and child elements anywhere within it; or it is valid against a version of the schema concerned in which the provision of character data, list, element, or attribute values has been made optional.
false
the example is not intended to be valid, and contains deliberate errors.
当該モジュールを使用するもの
上位
下位ANY
宣言

<rng:element name="egXML">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:optional>
  <rng:attribute name="valid" a:defaultValue="true">
   <rng:choice>
    <rng:value>true</rng:value>
    <rng:value>feasible</rng:value>
    <rng:value>false</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:zeroOrMore>
  <rng:group>
   <rng:choice>
    <rng:text/>
    <rng:ref name="macro.anyXML"/>
   </rng:choice>
  </rng:group>
 </rng:zeroOrMore>
</rng:element>
element egXML
{
   att.global.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   attribute valid { "true" | "feasible" | "false" }?,
   text | macro.anyXML*
}
<egXML xmlns="http://www.tei-c.org/ns/Examples">
<div>
<head>A slide about<gi>egXML</gi></head>
<list>
<item><gi>egXML</gi> can be used to give XML examples in the TEI
Examples namespace</item>
<item>Attributes values for<att>valid</att>:
<list rend="collapsed">
<item><val rend="green">true</val>: intended to be fully
valid</item>
<item><val rend="amber">feasible</val>: valid if missing nodes
provided</item>
<item><val rend="red">false</val>: not intended to be valid</item>
</list>
</item>
<item>The<att>rend</att> attribute in the TEI namespace can be
used for recording how parts of the example was rendered.</item>
</list>
</div>
</egXML>


<egXML xmlns="http://www.tei-c.org/ns/Examples" valid="feasible">
<text>
<front><!-- front matter for the whole group --></front>
<group>
<text>
<!-- first text -->
</text>
<text>
<!-- second text -->
</text>
</group>
</text>
<!-- This example is not valid TEI, but could be made so by
adding missing components -->


<egXML xmlns="http://www.tei-c.org/ns/Examples" valid="false">
<para xml:lang="en">Doubloons are a pirate's best friend</para>
</egXML>
<!-- This example is not TEI at all -->

解説
TEIガイドラインでは,当該要素とその内容は,名前区間 http://www.tei-c.org/ns/Examples で宣言されているとする.これにより,TEIスキームとは関係なく,当該 要素の内容は妥当とされる.当該要素が,これ以外の意味で使用される場 合には,異なる名前空間を使用することが望ましいだろう. 当該要素の内容は,整形式XMLデータでなければならない.そうでない場 合は,より一般的な要素egを使用すべきである.