This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] rules for different classes
- From: Thomas Gier <thomas dot gier at gmx dot de>
- To: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 15 Mar 2004 16:21:46 +0100
- Subject: Re: [docbook-apps] rules for different classes
- References: <1258382458.1079354594535@clevercactus.541027270>
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
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.