Many thanks to all those who replied to my plea for help. To sum it up,
there are several ways to perform this task:
- writing a script in a language such as sed, python (or Groovy) or perl
and use regular expressions;
- using an XSLT 2.0 style sheet;
- during my searches I found this software which might be useful
(perhaps in simpler cases): http://atox.sourceforge.net/; unfortunately
development seems to have stopped, I mention it here because it seems
quite sophisticated and might be of interest for some of you.
As I can barely program my VCR it will take me some time to come up with
a decent enough solution, but I will surely make it available by means
of the TEI wiki.
To answer Serge Heiden: thanks for the tip, unfortunately such DBT ->
SGML/XML converter must have been experimental because I talked to
Picchi and he told me that no such tool actually exists (in usable form).
Thank you again :)
Roberto Rosselli Del Turco roberto.rossellidelturco at unito.it
Dipartimento di Scienze rosselli at ling.unipi.it
del Linguaggio Then spoke the thunder DA
Universita' di Torino Datta: what have we given? (TSE)
Hige sceal the heardra, heorte the cenre,
mod sceal the mare, the ure maegen litlath. (Maldon 312-3)