A TEI related XSLT question: I'm hoping somebody has code already
A project I am consulting on involves a text full of Blackfoot words
that have been spelled phonetically using an unusual spelling system.
The investigator wants to give the text to an informant with an appendix
containing a list of all the Blackfoot words in the text, preferably
followed with links to the original location of the lemma. In some cases
the same spelling (identical or differing only in the use of case)
appears tens of times. The informant is going to provide normalisations
for the spellings in the text, which we will be adding to the encoding
along with the original.
The unusual Blackfoot spellings are currently marked up with a bare
tei:foreign. So what I want to do is
a) extract all the blackfoot words
b) sort them alphabetically and eliminate duplicates
c) place at the back of the document. If I can do this, I'd be happy.
Even better would be to follow the lemma with a link to the actual
occurrences in the text (e.g. in HTML terms <p>NA PE §§ <a
href="#s1.1">1.1</a>, <a href="#s1.4">1.4</a>, <a href="#s3.3">3.3</a>).
At this point, though, even a simple sorted list with no duplicates
I can do a) and c). I've been experimenting accomplishing b) using the
various ways of grouping listed at Jenni Tennison's site, but don't seem
to get one to work. Has anybody got some plug and play code or tips I
might be able to use?
Daniel Paul O'Donnell, PhD
Associate Professor and Chair, Department of English
Director, Digital Medievalist Project http://www.digitalmedievalist.org/
Chair and CEO, Text Encoding Initiative http://www.tei-c.org/
University of Lethbridge
Lethbridge AB T1K 3M4
Vox: +1 403 329-2378
Fax: +1 403 382-7191