att.instrumentident

Attributes which identify a MIDI instrument.
Module MEI.shared
Members
Attributes
@instr(optional)Provides a way of pointing to a MIDI instrument definition. It must contain the ID of an <instrDef> element elsewhere in the document. Value conforms to data.URI. att.instrumentident
Declaration
<attDef ident="instr" usage="opt">
<desc>Provides a way of pointing to a MIDI instrument definition. It must contain the ID of an <instrDef> element elsewhere in the document.</desc>
<datatype maxOccurs="1" minOccurs="1">
<rng:ref name="data.URI" />
</datatype>
<constraintSpec ident="check_instrTarget" scheme="isoschematron">
<constraint>
<sch:rule context="@instr">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@instr attribute should have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:instrDef/@xml:id">The value in @instr should correspond to the @xml:id attribute of an instrDef element.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</attDef>
Constraint
@instr attribute should have content.
The value in @instr should correspond to the @xml:id attribute of an instrDef element.
<sch:rule context="@instr">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@instr attribute should have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:instrDef/@xml:id">The value in @instr should correspond to the @xml:id attribute of an instrDef element.</sch:assert>
</sch:rule>