OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] rules for different classes


I wasn't clear if the request was to turn off just the rule lines or the
entire header or footer. Thomas' answer shows you how to use the sequence
parameter to turn off the rule. The same header.table or footer.table
template can be used to turn off the entire header or footer for certain
conditions.

If you look at the bottom of the header.table template, you will find a
xsl:choose statement that provides an opportunity to output the candidate
table or not.  If you want to suppress the header on certain page classes or
sequences, you can add xsl:when statements for additional cases.  That can
be used to suppress the entire header table, including its content and rule.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Thomas Gier" <thomas.gier@gmx.de>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, March 15, 2004 7:21 AM
Subject: Re: [docbook-apps] rules for different classes


> 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/.
>
>
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]