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

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

On 1/7/2015 2:44 PM, Gerard Nicol wrote:

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


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]