[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] bookmark (left navigation pane) comes as expanded by default on PDF report docbook 1.74.3
OK, FOP uses the fo:bookmark element to create
bookmarks, and it supports the starting-state="hide" property, which hides the
children of that bookmark (not that bookmark itself). To collapse all the
top level elements in the bookmarks list, you'll need to customize this template
from fo/fop1.xsl:
<xsl:template
match="set|book|part|reference|
preface|chapter|appendix|article |glossary|bibliography|index|setindex |refentry |sect1|sect2|sect3|sect4|sect5|section" mode="fop1.outline"> and change:
<xsl:choose>
<xsl:when test="self::index and $generate.index = 0"/> <xsl:when test="parent::*"> ...
to
<xsl:choose>
<xsl:when test="self::index and $generate.index = 0"/> <xsl:when test="self::chapter or self::appendix or self::preface"> <fo:bookmark internal-destination="{$id}" starting-state="hide"> <fo:bookmark-title> <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/> </fo:bookmark-title> <xsl:apply-templates select="*" mode="fop1.outline"/> </fo:bookmark> </xsl:when> <xsl:when test="parent::*"> ...
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]