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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: RE: [docbook] Refentry in TOC


Bob,

I am not getting the refentries in my HTML TOC either.

I'm now back where I started, asking if anybody has an example of the
customization required to achieve this ;-)

Are the instructions at http://www.sagehill.net/docbookxsl/TOCcontrol.html
the appropriate instructions? If they are, I'm struggling to understand
them.

Gerard

-----Original Message-----
From: Bob Stayton [mailto:bobs@sagehill.net]
Sent: Thursday, January 8, 2015 10:49 AM
To: Gerard Nicol; docbook@lists.oasis-open.org
Subject: Re: [docbook] Refentry in TOC

Hi Gerard,
Well, I was mistaken about FO output. I tested it in HTML output and thought
the behavior was the same for FO.

It seems the FO stylesheet includes refentry in the TOC only when it is a
child of chapter, appendix or article, not when it is a child of a section.
I'm not sure how this behavior came to be different from the HTML output.

Fixing this will require a customization.  Each of the templates in
fo/autotoc.xsl that match on section, sect1, sect2, etc. call the template
named 'toc.line' to generate the listing for the current element, and then
applies templates in mode="toc" to selected child elements.  You'll need to
modify that selection of child elements in customized templates to add
refentry.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

On 1/7/2015 2:44 PM, Gerard Nicol wrote:
> Bob,
>
> Here is my build command
>
> xsltproc --xinclude --stringparam fop1.extensions 1 \
>                      --stringparam admon.graphics 1 \
>                      --stringparam section.autolabel 1 \
>                      --stringparam refentry.pagebreak 0 \
>                      --stringparam toc.section.depth 5 \
>                      --stringparam section.label.includes.component.label
> 1 \
>                      --stringparam callout.graphics.path
> /usr/share/sgml/docbook/xsl-stylesheets-1.78.1/images/callouts \
>
> /var/docbook/build/book/docbook/custom/fo/docbook.xsl
> /var/docbook/build/book/book_sync_master.xml > book_sync.fo
>
> fop -fo book_sync.fo -pdf book_sync.pdf
>
> I am still not getting refentry in the TOC.
>
> Gerard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>
>
>


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