Dear TEI list,
We are using a TEI-based DTD for our encoding (having
properly used the TEI.extensions.dtd (and .ent)) and I
had a question about validation of a critical apparatus.
For ease of convenience we have created an <antiphon>
element with an @id and a @wit where we store the critical
sources which are used for that particular antiphon. These
are also listed in the document's <witList>. (Since it is
unfeasible to have a witList for every antiphon or respond).
What I want to be able to test is whether every MS mentioned
in a particular @wit is then given a reading. (And
So if we have an element like:
<antiphon id="c1692" wit="CAO Hyd Cht">
<app><rdg wit="CAO">Domino et omnia</rdg>
<rdg wit="Hyd Cht">deo et cuncta</rdg></app>
nascentia in ea hymnum
<app><rdg wit="CAO">dicat Alleluia alleluia. alleluia alleluia</rdg>
<rdg wit="Hyd Cht">dicant ei in saecula</rdg></app>.
What we want to be able to test is that for each app, that
there is a rdg/@wit which contains each of the manuscripts
mentioned in [log in to unmask] And of course the reverse, that
for each manuscript in the antiphon/@wit that every app
has a rdg/@wit which contains the manuscript sigil. This is
of course to ensure that we haven't omitted any manuscripts
from the app, or mis-spelt any of the sigils accidentally,
Obviously any tools out there aren't going to be set up to
use our antiphon tag, but since <app><rdg> must be used
frequently I thought someone might have already solved this
problem elsewhere? At worst I thought I should ask before
starting down the road of kludging something together
myself. I would have thought it would be possible in XSLT
somehow making use of substring-before() and
substring-after(), but perl might in the end be easier?
Since I know there are those much more expert in perl and
XSLT than I on this list, I'm hoping someone might be able
Any help or suggestions before I'm forced to make something
extremely kludgy are appreciated.
Dr James Cummings, [log in to unmask], http://www.uea.ac.uk/~q503
Cursus Project, School of Music, University of East Anglia,
Norwich, Norfolk, NR4 7TJ, UK