1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<xsl:template name="insertBodyStaticContents">
<xsl:call-template name="insertBodyFootnoteSeparator"/>
<xsl:call-template name="insertBodyOddFooter"/>
<xsl:if test="$mirror-page-margins">
<xsl:call-template name="insertBodyEvenFooter"/>
</xsl:if>
<xsl:choose>
<xsl:when test="*[contains(@product,'OPTION')]">
<xsl:call-template name="OddHeaderOPTION"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="insertBodyOddHeader"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$mirror-page-margins">
<xsl:call-template name="insertBodyEvenHeader"/>
</xsl:if>
<xsl:call-template name="insertBodyFirstHeader"/>
<xsl:call-template name="insertBodyFirstFooter"/>
<xsl:call-template name="insertBodyLastHeader"/>
<xsl:call-template name="insertBodyLastFooter"/>
</xsl:template>
<xsl:template name="insertBodyOddHeader">
<xsl:param as="xs:string" name="flow-name" select="'odd-body-header'" />
<fo:static-content flow-name="{$flow-name}">
<fo:block xsl:use-attribute-sets="__body__odd__header">
Chapitre <fo:retrieve-marker retrieve-class-name="current-header" />
<xsl:text>*</xsl:text>
</fo:block>
</fo:static-content>
</xsl:template>
<xsl:template name="OddHeaderOPTION">
<xsl:param as="xs:string" name="flow-name" select="'odd-body-header'" />
<fo:static-content flow-name="{$flow-name}">
<fo:block xsl:use-attribute-sets="__body__odd__header">
Chapitre <fo:retrieve-marker retrieve-class-name="current-header" />
<xsl:text>*</xsl:text>
<fo:inline xsl:use-attribute-sets="title__option">
<xsl:text>OPTION</xsl:text>
</fo:inline>
</fo:block>
</fo:static-content>
</xsl:template> |
Partager