<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright TEI Consortium. 
Dual-licensed under CC-by and BSD2 licences 
See the file COPYING.txt for details
$Date$
$Id$
-->
<?xml-model href="http://tei.oucs.ox.ac.uk/jenkins/job/TEIP5/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>
<elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" module="tagdocs" ns="http://www.tei-c.org/ns/Examples" ident="egXML">
  <gloss versionDate="2007-07-04" xml:lang="en">example of XML</gloss>
  <gloss versionDate="2007-12-20" xml:lang="ko">XML의 예</gloss>
  <gloss versionDate="2007-05-02" xml:lang="zh-TW"/>
  <gloss versionDate="2008-04-06" xml:lang="es">ejemplo de XML</gloss>
  <gloss versionDate="2007-06-12" xml:lang="fr">exemple en XML</gloss>
  <gloss versionDate="2007-11-06" xml:lang="it">esempio di XML</gloss>
  <desc versionDate="2008-01-31" xml:lang="en">contains a single well-formed XML fragment demonstrating the use of some XML element or
    attribute, in which the <gi>egXML</gi> element itself functions as the root element.</desc>
  <desc versionDate="2007-12-20" xml:lang="ko">어떤 XML 요소 또는 속성의 사용을 나타내는 정형의 단일 XML 예를 포함하며,
    <gi>egXML</gi>는 뿌리(최상위) 요소로 기능한다.</desc>
  <desc versionDate="2007-05-02" xml:lang="zh-TW">包含形式完整的單一XML範例的根結構，用以說明某些XML元素或屬性的使用方法。</desc>
  <desc versionDate="2008-04-05" xml:lang="ja">要素や属性の使用例を示す，整形式XMLデータによる用例をひとつ含む．要
    素<gi>egXML</gi>が当該用例の根要素になる．</desc>
  <desc versionDate="2007-06-12" xml:lang="fr">contient un seul exemple en XML bien formé montrant
    l'utilisation d'un élément ou d'un attribut XML.</desc>
  <desc versionDate="2007-05-04" xml:lang="es">constituye la raíz de un único ejemplo bien formado según
    el lenguaje XML que ilustra el uso de un elemento o un atributo XML.</desc>
  <desc versionDate="2007-01-21" xml:lang="it">contiene un unico esempio ben formato secondo il
    linguaggio XML che illustra l'impiego di un elemento o attributo XML</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="att.source"/>
    <memberOf key="model.egLike"/>
  </classes>
  <content>
    <rng:zeroOrMore>
        <rng:choice>
          <rng:text/>
          <rng:ref name="macro.anyXML"/>
        </rng:choice>
    </rng:zeroOrMore>
  </content>
  <attList>
    <attDef ident="valid">
      <desc versionDate="2011-01-30" xml:lang="en">indicates the intended validity of the example with respect to
a schema.</desc>
      <datatype>
        <rng:ref name="data.enumerated"/>
      </datatype>
      <defaultVal>true</defaultVal>
      <valList type="closed">
        <valItem ident="true">
          <desc versionDate="2011-12-04" xml:lang="en">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.</desc>
        </valItem>
        <valItem ident="feasible">
          <desc versionDate="2011-12-04" xml:lang="en">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.</desc>
        </valItem>
        <valItem ident="false">
          <desc versionDate="2011-01-30" xml:lang="en">the example is not intended to be valid,
and contains deliberate errors.</desc>
        </valItem>
      </valList>
    </attDef>
  </attList>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
<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>
  </exemplum>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:lang="und"  valid="feasible">
      
      <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>
    </egXML>
  </exemplum>

  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:lang="und" valid="false">
      &lt;egXML xmlns="http://www.tei-c.org/ns/Examples" valid="false">
         &lt;para xml:lang="en">Doubloons are a pirate's best friend&lt;/para>
      &lt;/egXML>
    </egXML>
  </exemplum>

  <remarks versionDate="2011-12-05" xml:lang="en">
    <p>In the source of the TEI Guidelines, this element declares itself and its content as
      belonging to the namespace <ident type="ns">http://www.tei-c.org/ns/Examples</ident>. This
      enables the content of the element to be validated independently against the TEI scheme. Where
      this element is used outside this context, a different namespace or none at all may be
      preferable. The content must however be a well-formed XML fragment or document: where this is
      not the case, the more general <gi>eg</gi> element should be used in preference. In a TEI context 
      use of the <att>rend</att> attribute in the TEI namespace, as opposed to the TEI Examples namespace, 
      enables recording of rendition information.
    </p>
  </remarks>
  <remarks xml:lang="fr" versionDate="2007-06-12">
    <p>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 <ident type="ns">http://www.tei-c.org/ns/Examples</ident>. 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 <gi>eg</gi> .</p>
  </remarks>
  <remarks xml:lang="ja" versionDate="2008-04-05">
    <p> TEIガイドラインでは，当該要素とその内容は，名前区間 <ident type="ns">http://www.tei-c.org/ns/Examples</ident>
      で宣言されているとする．これにより，TEIスキームとは関係なく，当該 要素の内容は妥当とされる．当該要素が，これ以外の意味で使用される場
      合には，異なる名前空間を使用することが望ましいだろう． 当該要素の内容は，整形式XMLデータでなければならない．そうでない場
      合は，より一般的な要素<gi>eg</gi>を使用すべきである． </p>
  </remarks>
  <listRef>
    <ptr target="#TDphraseTE"/>
  </listRef>
</elementSpec>
