ISO-specific overrides for TEI stylesheet to convert TEI XML to Word DOCX XML.
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
16
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
16
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>
<xsl:template name="create-document-dot-xml"><w:document><w:body><xsl:choose><xsl:when test="$isofreestanding='true'"><xsl:call-template name="write-document-dot-xml-frontmatter"/><xsl:call-template name="write-document-dot-xml-maincontent"/><xsl:call-template name="write-document-dot-xml-backmatter"/></xsl:when><xsl:otherwise><!-- Front --><front><xsl:call-template name="write-document-dot-xml-frontmatter"/></front><!-- Main --><main><xsl:call-template name="write-document-dot-xml-maincontent"/></main><!-- Back --><back><xsl:call-template name="write-document-dot-xml-backmatter"/></back></xsl:otherwise></xsl:choose></w:body></w:document></xsl:template>
<xsl:template name="write-document-dot-xml-maincontent"><!-- document title --><xsl:if test="$isofreestanding='true'"><xsl:call-template name="document-title"/></xsl:if><!-- Describes the main part of the document --><xsl:apply-templates select="tei:text/tei:body"/></xsl:template>