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

<egXML> (XML의 예) 어떤 XML 요소 또는 속성의 사용을 나타내는 정형의 단일 XML 예를 포함하며, egXML는 뿌리(최상위) 요소로 기능한다. [22.4.4 Element Specifications 22.4.5 Attribute List Specification]
모듈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.
상태 수의적
적법한 값은:
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">
<langUsage>
<language ident="fr">English</language>
</langUsage>
</egXML>
<!-- Though syntactically valid, this example is incorrect -->


<egXML xmlns="http://www.tei-c.org/ns/Examples"
xmlns:tei="http://www.tei-c.org/ns/1.0">
<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 tei:rend="collapsed">
<item><val tei:rend="green">true</val>: intended to be fully
valid</item>
<item><val tei:rend="amber">feasible</val>: valid if missing nodes
provided</item>
<item><val tei: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>