TEI stylesheet dealing with elements from the core module, making
LaTeX output.
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
<xsl:template match="tei:pb"><!-- string " Page " is now managed through the i18n file --><xsl:choose><xsl:when test="$pagebreakStyle='active'"><xsl:text>\clearpage </xsl:text></xsl:when><xsl:when test="$pagebreakStyle='visible'"><xsl:text>✁[</xsl:text><xsl:value-of select="@unit"/><xsl:text></xsl:text><xsl:call-template name="i18n"><xsl:with-param name="word">page</xsl:with-param></xsl:call-template><xsl:text></xsl:text><xsl:value-of select="@n"/><xsl:text>]✁</xsl:text></xsl:when><xsl:when test="$pagebreakStyle='bracketsonly'"><!-- To avoid trouble with the scisssors character "✁" --><xsl:text>[</xsl:text><xsl:value-of select="@unit"/><xsl:text></xsl:text><xsl:call-template name="i18n"><xsl:with-param name="word">page</xsl:with-param></xsl:call-template><xsl:text></xsl:text><xsl:value-of select="@n"/><xsl:text>]</xsl:text></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose><xsl:if test="@xml:id"><xsl:text>\hypertarget{</xsl:text><xsl:value-of select="@xml:id"/><xsl:text>}{}</xsl:text></xsl:if></xsl:template>
<xsl:template match="tei:quote"><xsl:choose><xsl:when test="parent::tei:cit"><xsl:apply-templates/></xsl:when><xsl:when test="@rend='inline'"><xsl:value-of select="$preQuote"/><xsl:apply-templates/><xsl:value-of select="$postQuote"/></xsl:when><xsl:when test="@rend='display' or tei:p or tei:l or string-length(.)>150"><xsl:text>\begin{quote}</xsl:text><xsl:apply-templates/><xsl:text>\end{quote}</xsl:text></xsl:when><xsl:otherwise><xsl:value-of select="$preQuote"/><xsl:apply-templates/><xsl:value-of select="$postQuote"/></xsl:otherwise></xsl:choose></xsl:template>