TEI stylesheet for making Word docx files from TEI XML (see tei-docx.xsl)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version. This library is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details. You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Template
tei:list[@type='termlist' and ancestor-or-self::*/@type='termsAndDefinitions']/tei:item/tei:abbrget-style
Namespace
No namespace
Match
tei:list[@type='termlist' and ancestor-or-self::*/@type='termsAndDefinitions']/tei:item/tei:abbr
Mode
get-style
Import precedence
14
Source
<xsl:template match="tei:list[@type='termlist' and ancestor-or-self::*/@type='termsAndDefinitions']/tei:item/tei:abbr" mode="get-style">ExtRef</xsl:template>
Template
tei:seg[not(@*) and normalize-space(.)='']
Namespace
No namespace
Match
tei:seg[not(@*) and normalize-space(.)='']
Mode
#default
Import precedence
14
Source
<xsl:template match="tei:seg[not(@*) and normalize-space(.)='']"><w:r><w:t><xsl:attribute name="xml:space">preserve</xsl:attribute><xsl:text></xsl:text></w:t></w:r></xsl:template>
Special Notes (Footnotes) ..
@TODO: Ideally this should go into the general template, but for some
reason xsl always calls the less specific tei:note template in here.