[tei-council] Two quick questions about Schematron constraints
mholmes at uvic.ca
Fri Jun 15 14:46:27 EDT 2012
I'm rather belatedly getting around to implementing a couple of
schematron constraints I was tasked with at Ann Arbor, and thinking
about the explanatory bit on constraints that I'll be writing for "How
to edit the Guidelines".
Looking at the existing constraints, I have a couple of questions:
In this constraint (from delSpan):
<constraintSpec ident="spanTo" scheme="isoschematron">
test="@spanTo">The spanTo= attribute of <name/> is required.</assert>
does <name/> automatically get replaced by ancestor::elementSpec/@ident?
What happens in the case of constraints on attributes? There appears to
be only one (on @targetLang in att.pointing), but if <name/> were used
there, would it be replaced with @targetLang, or with the ancestor's
Secondly, these constraints appear on the root TEI element:
<constraintSpec ident="c1" scheme="isoschematron">
<ns xmlns="http://purl.oclc.org/dsdl/schematron" prefix="tei"
<constraintSpec ident="c2" scheme="isoschematron">
<ns xmlns="http://purl.oclc.org/dsdl/schematron" prefix="rng"
What are they actually doing, if anything?
University of Victoria Humanities Computing and Media Centre
(mholmes at uvic.ca)
More information about the tei-council