<elementSpec ident="patch" module="MEI.header">
<desc xml:lang="en">Describes a physical writing surface attached to the original document.</desc>
<classes>
<memberOf key="att.common"/>
<memberOf key="att.evidence"/>
<memberOf key="att.measurement"/>
<memberOf key="att.trans"/>
<memberOf key="att.xy"/>
<memberOf key="model.paperModLike"/>
</classes>
<content>
</content>
<constraintSpec ident="check_attached_position" scheme="schematron">
<constraint>
<sch:rule context="mei:patch">
<sch:assert test="(parent::mei:folium and @attached.to = ('recto','verso')) or (parent::mei:bifolium
and @attached.to = ('outer.recto','inner.verso','inner.recto','outer.verso'))">The allowed positions of a patch depend on its parent element.</sch:assert>
<sch:assert test="count(child::node()) gt 0">A patch element must contain either a folium
or a bifolium element.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="attached.to" usage="req">
<desc xml:lang="en">Describes the position of the patch on the parent folium / bifolium.</desc>
<valList type="closed">
<valItem ident="outer.recto">
<desc xml:lang="en">patch attached to outer recto side of bifolium.</desc>
</valItem>
<valItem ident="inner.verso">
<desc xml:lang="en">patch attached to inner verso side of bifolium.</desc>
</valItem>
<valItem ident="inner.recto">
<desc xml:lang="en">patch attached to inner recto side of bifolium.</desc>
</valItem>
<valItem ident="outer.verso">
<desc xml:lang="en">patch attached to outer verso side of bifolium.</desc>
</valItem>
<valItem ident="recto">
<desc xml:lang="en">patch attached to recto side of folium.</desc>
</valItem>
<valItem ident="verso">
<desc xml:lang="en">patch attached to verso side of folium.</desc>
</valItem>
</valList>
</attDef>
<attDef ident="attached.by" usage="opt">
<desc xml:lang="en">Describes the method of attachment of the patch.</desc>
<datatype>
<rng:data type="NMTOKEN"/>
</datatype>
<valList type="semi">
<valItem ident="glue">
<desc xml:lang="en">patch is glued on surface beneath.</desc>
</valItem>
<valItem ident="thread">
<desc xml:lang="en">patch is sewn on surface beneath.</desc>
</valItem>
<valItem ident="needle">
<desc xml:lang="en">patch is pinned to the surface beneath.</desc>
</valItem>
<valItem ident="tape">
<desc xml:lang="en">patch is taped on surface beneath using an adhesive strip.</desc>
</valItem>
<valItem ident="staple">
<desc xml:lang="en">patch is attached on surface beneath using a staple.</desc>
</valItem>
</valList>
</attDef>
</attList>
<remarks xml:lang="en">
<p>A patch must always contain a <gi scheme="MEI">folium</gi> or <gi scheme="MEI">bifolium</gi> element. The @x and @y attributes are used to position the patch on its
parent surface by indicating the upper left corner of the patch. The size of the patch
is
encoded using the @height and @width attributes on the child folium (or bifolium).</p>
</remarks>
<!--<remarks xml:lang="en">
<p>TODO: It remains unclear how to specify which part of the patch is attached to
the
underlying surface. Right now, the assumption is that it is always attached with the
patch’s verso (or outer.verso) side, but what about patches that can be folded up
or
down?</p>
</remarks>-->
</elementSpec>