<?xml version="1.0" encoding="UTF-8"?>
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/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:sch="http://purl.oclc.org/dsdl/schematron" ident="facsimile" xml:id="gi-facsimile" module="transcr">
  <desc versionDate="2007-08-26" xml:lang="en">contains a representation of some written source in the form of a set of images rather than as transcribed or encoded text.</desc>
  <desc versionDate="2007-12-20" xml:lang="ko">전사 또는 부호화된 텍스트 형태보다는 이미지 집합의 형태로 기록 원본의 표상을 포함한다.</desc>
  <desc versionDate="2008-04-06" xml:lang="es">contiene una representación de una cierta fuente escrita bajo la forma de conjunto de las imágenes algo que como texto transcrito o codificado.</desc>
  <desc versionDate="2008-04-06" xml:lang="ja">転記または符号化されたテキストではなく、画像データ中にある、書記資料の 表現を示す。</desc>
  <desc versionDate="2009-11-16" xml:lang="fr">contient une représentation d'une source écrite quelconque sous la forme d'un ensemble d'images plutôt que sous la forme d'un texte transcrit ou encodé.</desc>
  <desc versionDate="2007-11-06" xml:lang="it">contiene una rappresentazione di una qualche fonte scritta sotto forma di una serie di immagini piuttosto che di testo trascritto o codificato</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="att.declaring"/>
    <memberOf key="model.resource"/>
  </classes>
  <content>
    <sequence>
      <elementRef key="front" minOccurs="0"/>
      <alternate>
        <alternate minOccurs="1" maxOccurs="unbounded">
          <classRef key="model.graphicLike"/>
          <elementRef key="surface"/>
          <elementRef key="surfaceGrp"/>
        </alternate>
        <elementRef key="facsimile" minOccurs="1" maxOccurs="unbounded"/>
      </alternate>
      <elementRef key="back" minOccurs="0"/>
    </sequence>
  </content>
  <constraintSpec scheme="schematron" ident="no_facsimile_text_nodes" xml:lang="en">
    <constraint>
      <sch:rule context="tei:facsimile//tei:line | tei:facsimile//tei:zone">
        <sch:report test="child::text()[ normalize-space(.) ne '']">
          A facsimile element represents a text with images, thus
          transcribed text should not be present within it.
        </sch:report>
      </sch:rule>
    </constraint>
    <!-- 
         What about:
         * ellipses/supplied/text()
         * writing
         * label, formula, app, witDetail, metamark?
         * notatedMusic?
         * figure/[all-sorts-of-crazy-stuff-e.g.-entry]
         * addSpan, damageSpan, delSpan
         Or the fact that <front> and <back> (but not <body>) are
         permitted inside <facsimile>, and thus *anything* can be
         inside ther?
         See https://github.com/TEIC/TEI/issues/2363
    -->
  </constraintSpec>
  <exemplum xml:lang="und">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-facsimile-egXML-bn" source="#UND">
      <facsimile>
        <graphic url="page1.png"/>
        <surface>
          <graphic url="page2-highRes.png"/>
          <graphic url="page2-lowRes.png"/>
        </surface>
        <graphic url="page3.png"/>
        <graphic url="page4.png"/>
      </facsimile>
    </egXML>
  </exemplum>
  <exemplum xml:lang="und">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-facsimile-egXML-cf" source="#UND">
      <facsimile>
        <surface ulx="0" uly="0" lrx="200" lry="300">
          <graphic url="Bovelles-49r.png"/>
        </surface>
      </facsimile>
    </egXML>
  </exemplum>
  <listRef>
    <ptr target="#PHFAX"/>
  </listRef>
</elementSpec>
