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] Static content in fo-region-start in ToC


Hi Brett,
I guess it isn't obvious from the stylesheet filenames, but the templates 
in toc.xsl are used only when there is a  <toc> element in the document 
with literal toc content elements.  Usually the stylesheet generates the 
toc internally from the content, using the templates in autotoc.xsl.

If you look in fo/division.xsl in the template with match="book" you will 
find these lines that start the process of creating the page-sequence for 
the generated TOC:

  <xsl:if test="contains($toc.params, 'toc')">
    <fo:page-sequence hyphenate="{$hyphenate}"
                      master-reference="{$lot-master-reference}">

If you customize this template, then you can add your 
mode="running.side.mode" template. In this case, the variable is 
$lot-master-reference.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Brett" <brett@atsec.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, August 14, 2006 3:03 PM
Subject: [docbook-apps] Static content in fo-region-start in ToC


> Hello, world.
>
> Using the running.side.mode customization detailed here:
> http://www.dpawson.co.uk/docbook/styling/fo.html#d2647e1042
> I have been able to add a slim red sidebar (a simple .gif image) to the
> fo-region-start for all of my book-level components like article and
> bibliography, etc.
>
> I am running into trouble trying to get the sidebar to display in my
> table of contents, and all my attempted customizations to toc.xsl have
> been a failure.
>
> Is it possible to get this customization to work simply by adding:
>  <xsl:apply-templates select="." mode="running.side.mode">
>        <xsl:with-param name="master-reference" 
> select="$master-reference"/>
>  </xsl:apply-templates>
>
> to the proper place in toc.xsl like I did with my book-level components?
>
> Note: I DID create the fo-region-start in my ToC pagemaster, and judging
> by the headers and footers the correct pagemaster is being used, so I
> don't think the problem is from overlapping fo regions..
> <mailto:docbook-apps@lists.oasis-open.org>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 




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