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

<egXML> (exemple en XML) contient un seul exemple en XML bien formé montrant l'utilisation d'un élément ou d'un attribut XML. [22.1.1 Phrase Level Terms]
Namespace http://www.tei-c.org/ns/Examples
Module tagdocs — Documentation Elements
Attributs
valid⚓︎ indicates the intended validity of the example with respect to a schema.
Statut Optionel
Type de données teidata.enumerated
Les valeurs autorisées sont:
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. [Valeur par défaut]
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.
Membre du
Contenu dans
Peut contenir ANY
Note

Dans la source des principes directeurs de la TEI, cet élément se déclare lui-même, ainsi que son contenu, comme appartenant à l'espace de noms http://www.tei-c.org/ns/Examples. Cela permet au contenu de l'élément d'être validé indépendamment du schéma TEI. Lorsque cet élément est utilisé hors de ce contexte, il peut s'avérer préférable de mettre un espace de noms différent ou pas d'espace de nom du tout. Le contenu doit cependant être un document ou un fragment en XML bien formé : si ce n'est pas le cas, on utilisera plutôt l'élément plus général eg .

Exemple
<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 can be
       used for recording how parts of the example were rendered.</item>
  </list>
</div>
</egXML>
Exemple
<egXML valid="feasiblesource="#UND" xmlns="http://www.tei-c.org/ns/Examples"><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>
Exemple
      <egXML xmlns="http://www.tei-c.org/ns/Examples" valid="false">          <para xml:lang="en">Doubloons are a pirate's best friend</para>       </egXML>     
Modèle de contenu
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <anyElement/>
 </alternate>
</content>
Schéma Declaration
<rng:element name="egXML">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.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:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.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:choice>
   <rng:text/>
   <rng:ref name="anyElement_egXML_2"/>
  </rng:choice>
 </rng:zeroOrMore>
</rng:element>
element egXML
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   attribute valid { "true" | "feasible" | "false" }?,
   ( text | anyElement_egXML_2 )*
}