TEI-Simple
TEI-Simple copied to clipboard
constraintSpec seems to be in the wrong place
The constraintSpec below is located in the classSpec which modifies att.global.rendition:
<constraintSpec ident="corresppointer" scheme="isoschematron">
<constraint>
<rule xmlns="http://purl.oclc.org/dsdl/schematron" context="tei:*[@corresp]">
<let name="results"
value="for $t in tokenize(normalize-space(@corresp),'\s+') return starts-with($t,'#') and not(id(substring($t,2)))"/>
<report test="some $x in $results satisfies $x"> Error: Every local pointer in "<value-of
select="@corresp"/>" must point to an ID in this document (<value-of select="$results"
/>)</report>
</rule>
</constraint>
However, @corresp is defined in att.global.linking, not att.global.rendition. Unless I'm misunderstanding something, it should be moved.
This is in the file teisimple.odd.