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


Thomas Gier wrote:
> Guy Worthington wrote:

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

Hello Thomas,

Woo hoo!

> Hope this helps ...

Yes it helps.  Using your
instructions I've just copied
270 lines of code (from the file
fo/pagesetup.xsl) to my customization
layer and hacked it.

And it worked.

Woo hoo!



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