att.datapointing

Attributes for linking metadata to data.
Module MEI.shared
Members
Attributes
@data(optional)Used to link metadata elements to one or more data-containing elements. One or more values from data.URI, separated by spaces. att.datapointing
Declaration
<attDef ident="data" usage="opt">
<desc>Used to link metadata elements to one or more data-containing elements.</desc>
<datatype maxOccurs="unbounded" minOccurs="1">
<rng:ref name="data.URI" />
</datatype>
<constraintSpec ident="check_dataTarget" scheme="isoschematron">
<constraint>
<sch:rule context="@data">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@data attribute should have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:*[ancestor::mei:music]/@xml:id">The value in @data should correspond to the @xml:id attribute of a descendant of the music element.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</attDef>
Constraint
@data attribute should have content.
The value in @data should correspond to the @xml:id attribute of a descendant of the music element.
<sch:rule context="@data">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@data attribute should have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:*[ancestor::mei:music]/@xml:id">The value in @data should correspond to the @xml:id attribute of a descendant of the music element.</sch:assert>
</sch:rule>