TEIC / TEI-Simple

Legacy Repository: TEI SimplePrint now merged into TEI Repository. Originally TEI Simple aimed to define a new highly-constrained and prescriptive subset of the Text Encoding Initiative (TEI) Guidelines suited to the representation of early modern and modern books, a formally-defined set of processing model rules that enable web applications to easily present and analyze the encoded texts, mapping to other ontologies, and processes to describe the encoding status and richness of a TEI digital text.
50 stars 12 forks source link

constraintSpec seems to be in the wrong place #26

Open martindholmes opened 8 years ago

martindholmes commented 8 years ago

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.