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] Chapter TOC


The context node for the call to component.toc.separator is the element
containing the toc.  You just need to test for section children:

<xsl:if test="section or sect1">
  <!-- draw the line -->
</xsl:if.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Zbyszek Cybulski" <z.cybulski@gmail.com>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, October 18, 2005 12:26 PM
Subject: Re: [docbook-apps] Chapter TOC


Bob, thanks a lot. This is it.

However, another question arose.
I'd like to draw the line under the chapter TOC only when it exists. I
have chapters that don't have any sections, so the line isn't
necessary in such cases.
How can I achieve this goal?

-Z

On 10/17/05, Bob Stayton <bobs@sagehill.net> wrote:
> Ah, your template uses "match" when it should be:
>
> name="component.toc.separator"
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
> ----- Original Message -----
> From: "Zbyszek Cybulski" <z.cybulski@gmail.com>
> To: "Bob Stayton" <bobs@sagehill.net>
> Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
> Sent: Sunday, October 16, 2005 11:45 PM
> Subject: Re: [docbook-apps] Chapter TOC
>
>
> Regret to report this, but it doesn't work.
> Does it mean the chapter TOC handling has another bug?
>
> -Z
>
> On 10/14/05, Bob Stayton <bobs@sagehill.net> wrote:
> > That should work except for the xsl:apply-imports, which is not needed
> (and
> > I think would process the chapter again).
> >
> > Bob Stayton
> > Sagehill Enterprises
> > DocBook Consulting
> > bobs@sagehill.net
> >
> >
> > ----- Original Message -----
> > From: "Zbyszek Cybulski" <z.cybulski@gmail.com>
> > To: "Bob Stayton" <bobs@sagehill.net>
> > Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
> > Sent: Friday, October 14, 2005 2:12 AM
> > Subject: Re: [docbook-apps] Chapter TOC
> >
> >
> > If I understood correctly, I should use the following:
> >
> >     <xsl:template match="component.toc.separator">
> >         <fo:block space-after="12pt">
> >             <fo:leader color="#6C94E1" leader-pattern="rule"
> > leader-length="13.5cm" rule-style="solid"/>
> >         </fo:block>
> >         <xsl:apply-imports/>
> >     </xsl:template>
> >
> > to get a blue line of width=13.5 cm and 12pt high leading after the
line.
> > Is that correct?
> >
> > On 10/14/05, Bob Stayton <bobs@sagehill.net> wrote:
> > > In the match="chapter" template in fo/component.xsl, you'll see this:
> > >
> > >       <xsl:if test="contains($toc.params, 'toc')">
> > >         <xsl:call-template name="component.toc"/>
> > >         <xsl:call-template name="component.toc.separator"/>
> > >       </xsl:if>
> > >
> > > The 'component.toc.separator' template is an empty placeholder that
can
> be
> > > customized.
> > > It also applies to any other component elements (appendix, preface,
> etc.)
> > > that have a toc.
> > >
> > > Bob Stayton
> > > Sagehill Enterprises
> > > DocBook Consulting
> > > bobs@sagehill.net
> > >
> > >
> > > ----- Original Message -----
> > > From: "Zbyszek Cybulski" <z.cybulski@gmail.com>
> > > To: "Bob Stayton" <bobs@sagehill.net>
> > > Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
> > > Sent: Thursday, October 13, 2005 11:29 PM
> > > Subject: Re: [docbook-apps] Chapter TOC
> > >
> > >
> > > I've filed a bug report for this problem.
> > >
> > > Another question a bit related to this one.
> > >
> > > Is there any way to visually separate the chapter TOC from the body
> > > text? I mean an additional leading space or a horizontal line after
> > > the TOC.
> > >
> > > Thanks,
> > >
> > > -Z
> > >
> > > On 10/14/05, Bob Stayton <bobs@sagehill.net> wrote:
> > > > Well, it appears that this feature is implemented only on the HTML
> side,
> > > not
> > > > the FO side.  I think you should file a bug report on the
SourceForge
> > > site:
> > > >
> > > >
> http://sourceforge.net/docman/display_doc.php?docid=27830&group_id=21935
> > > >
> > > > Bob Stayton
> > > > Sagehill Enterprises
> > > > DocBook Consulting
> > > > bobs@sagehill.net
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Zbyszek Cybulski" <z.cybulski@gmail.com>
> > > > To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
> > > > Sent: Thursday, October 13, 2005 2:53 AM
> > > > Subject: [docbook-apps] Chapter TOC
> > > >
> > > >
> > > > Hi,
> > > >
> > > > my customization layer contains the following:
> > > >
> > > > <xsl:param name="generate.toc">
> > > >         book toc,title
> > > >     chapter toc
> > > >     </xsl:param>
> > > >
> > > > since I want the chapter TOC without the generated text (Table of
> > > Contents).
> > > >
> > > > However, the generated TOC title appears in PDF, no matter how the
> > > > parameter is set: "chapter toc" or "chapter toc,title".
> > > >
> > > > My toolchain is:
> > > > DTD 4.4, XSL 1.69.1-snapshot (dated 2005.09.26) and XEP 4.4, all
under
> > > > Oxygen 6.2/Win
> > > >
> > > > Can anyone help?
> > > >
> > > > Thanks,
> > > >
> > > > -Z
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
docbook-apps-unsubscribe@lists.oasis-open.org
> > > > For additional commands, e-mail:
> docbook-apps-help@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]