This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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!


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]