Hi Guy,
[...]
I checked the below with one of my books using the 1.65.0 stylesheets:
> to suppress the header rule. How can I
> suppress the rule just on the first page
> of a chapter?
>
Copy the "header.table" template from fo/pagesetup.xsl to your
customisation layer and add a <xsl:if> which checks whether the
$sequence has not the value "first":
-------------------------------------------------
<xsl:template name="header.table">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<xsl:variable name="candidate">
<fo:table table-layout="fixed" width="100%">
<!-- GUY: xsl:if added -->
<xsl:if test="$sequence != 'first'">
<xsl:call-template name="head.sep.rule"/>
</xsl:if>
[...]
-----------------------------------------
> In a similar question to the first: I only
> want a footer on the first page of a chapter.
> How can I suppress the footer rule on every page
> except the first page of a chapter?
>
Nearly the same as above but this time the "footer.table" template in
fo/pagesetup.xsl should be copied and altered:
--------------------------------------
<xsl:template name="footer.table">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="gentext-key" select="''"/>
[...]
<xsl:variable name="candidate">
<fo:table table-layout="fixed" width="100%">
<!-- GUY: xsl:if added--->
<xsl:if test="$sequence = 'first'">
<xsl:call-template name="foot.sep.rule">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
</xsl:if>
[...]
---------------------------------------
Hope this helps ...
Thomas Gier
Technical Writer
Aachen / Germany