The mei element defines an instance of a document encoded with the MEI schema. It is the document element for a single document containing a header and data. The name of this element should not be changed by any customization in order to assure an absolute minimum level of MEI compliance.
<sch:rule context="mei:*[@staff]">
<sch:assert test="every $i in tokenize(normalize-space(@staff), '\s+') satisfies $i=//mei:staffDef/@n">The values in @staff must correspond to @n attribute of a staffDef
element.</sch:assert>
</sch:rule>
<elementSpec ident="mei" module="MEI.shared">
<desc>Contains a single MEI-conformant document, consisting of an MEI header and a musical
text,
either in isolation or as part of an meiCorpus element.</desc>
<classes>
<memberOf
key="att.id"/>
<memberOf
key="att.meiVersion"/>
<memberOf
key="att.responsibility"/>
</classes>
<constraintSpec ident="Check_staff" scheme="isoschematron">
<constraint>
<sch:rule context="mei:*[@staff]">
<sch:assert test="every $i in tokenize(normalize-space(@staff), '\s+') satisfies $i=//mei:staffDef/@n">The values in @staff must correspond to @n attribute of a staffDef
element.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<remarks>
<p part="N">The
<gi scheme="MEI">mei</gi> element defines an instance of a document encoded with the
MEI schema. It is the document element for a single document containing a header and
data.
The name of this element should not be changed by any customization in order to assure
an
absolute minimum level of MEI compliance.</p>
</remarks>
</elementSpec>