TEI stylesheet
dealing with elements from the
textstructure module, making XSL-FO 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:body"><xsl:choose><xsl:when test="ancestor::tei:floatingText"><xsl:apply-templates/></xsl:when><xsl:when test="ancestor::tei:p"><xsl:apply-templates/></xsl:when><xsl:when test="ancestor::tei:group"><xsl:apply-templates/></xsl:when><xsl:otherwise><!-- start page sequence --><page-sequence format="{$formatBodypage}" text-align="{$alignment}" hyphenate="{$hyphenate}" language="{$language}" initial-page-number="1"><xsl:call-template name="choosePageMaster"><xsl:with-param name="where"><xsl:value-of select="$bodyMulticolumns"/></xsl:with-param></xsl:call-template><!-- static areas --><xsl:choose><xsl:when test="$twoSided='true'"><xsl:call-template name="headers-footers-twoside"/></xsl:when><xsl:otherwise><xsl:call-template name="headers-footers-oneside"/></xsl:otherwise></xsl:choose><!-- now start the main flow --><flow flow-name="xsl-region-body" font-family="{$bodyFont}" font-size="{$bodySize}"><xsl:if test="not($flowMarginLeft='')"><xsl:attribute name="margin-left"><xsl:value-of select="$flowMarginLeft"/></xsl:attribute></xsl:if><!--include front matter if there is no separate titlepage --><xsl:if test="not($titlePage='true') and not(preceding-sibling::tei:front)"><xsl:call-template name="Header"/></xsl:if><xsl:apply-templates/><xsl:if test=".//tei:note[@place='end']"><block><xsl:call-template name="setupDiv2"/><xsl:text>Notes</xsl:text></block><xsl:apply-templates select=".//tei:note[@place='end']" mode="endnote"/></xsl:if></flow></page-sequence></xsl:otherwise></xsl:choose></xsl:template>
<xsl:template match="tei:head" mode="section"><!-- if we have multiple <head> elements together,
separate by spaces --><!--
<xsl:if test="preceding-sibling::tei:head">
<xsl:text> </xsl:text>
</xsl:if>
--><xsl:apply-templates/></xsl:template>