Lovely to see another implementation of TEI/OO! I am just about to rewrite my transformations in XSLT 2.0, to take
advantage of newer features, and I shall study this with interest. I assume you have not done TEI -> ODT yet?
I am a bit worried, on first glance, by the handling of <text:h>:
<xsl:variablename="open"><div><div><div><div><div><div><div><div><div><div><div></xsl:variable>
<xsl:text/>
<xsl:value-of disable-output-escaping="yes" select="substring($open, 1, 5)"/>
<xsl:value-of disable-output-escaping="yes" select="substring($open, 1, ($level - $prev - 1) * 5)"/>
as the use of d-o-e only works if you serialize it immediately, and don't need to go through some more XML processing.
One of my main aims in a rewrite is to get rid of any need for d-o-e, by using XSLT 2 grouping
--
Sebastian Rahtz
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
Sólo le pido a Dios
que el futuro no me sea indiferente
|