att.classcodeident

att.classcodeident
Module MEI.shared
Members
term, termList (direct members of att.classcodeident)
Attributes
@classcode (optional) Contains a reference to the controlled vocabulary from which the term is drawn. The value must match the value of an ID attribute on a classCode element given elsewhere in the document. Value conforms to data.URI . att.classcodeident
Declaration
<attDef ident= "classcode" usage= "opt">
<desc>Contains a reference to the controlled vocabulary from which the term is drawn. The value must match the value of an ID attribute on a classCode element given elsewhere in the document. </desc>
<datatype maxOccurs= "1" minOccurs= "1">
<rng:ref name= " data.URI" />
</datatype>
<constraintSpec ident= "check_classcodeTarget" scheme= "isoschematron">
<constraint>
<sch:rule context= "@classcode">
<sch:assert role= "warning" test= "not(normalize-space(.) eq '')"> @classcode attribute should have content. </sch:assert>
<sch:assert role= "warning" test= "every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:classCode/@xml:id"> The value in @classcode should correspond to the @xml:id attribute of a classCode element. </sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</attDef>
Constraints
@classcode attribute should have content.
The value in @classcode should correspond to the @xml:id attribute of a classCode element.
<sch:rule context= "@classcode">
<sch:assert role= "warning" test= "not(normalize-space(.) eq '')"> @classcode attribute should have content. </sch:assert>
<sch:assert role= "warning" test= "every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:classCode/@xml:id"> The value in @classcode should correspond to the @xml:id attribute of a classCode element. </sch:assert>
</sch:rule>

MEI Guidelines Version 3.0.0

Attribute Classes