TEI-Simple icon indicating copy to clipboard operation
TEI-Simple copied to clipboard

constraintSpec seems to be in the wrong place

Open martindholmes opened this issue 9 years ago • 0 comments

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.

martindholmes avatar Jan 25 '16 17:01 martindholmes