<sch:rule context="mei:staff/@def">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@def attribute should
have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:staffDef/@xml:id">The value in @def should correspond to the @xml:id attribute of a staffDef
element.</sch:assert>
</sch:rule>
<classSpec ident="att.staff.log" module="MEI.shared" type="atts">
<desc>Logical domain attributes.</desc>
<attList org="group">
<attDef ident="def" usage="opt">
<desc>Provides a mechanism for linking the staff to a staffDef element.</desc>
<constraintSpec ident="check_defTarget_staff" scheme="isoschematron">
<constraint>
<sch:rule context="mei:staff/@def">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@def attribute should
have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:staffDef/@xml:id">The value in @def should correspond to the @xml:id attribute of a staffDef
element.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</attDef>
</attList>
</classSpec>