From: <dc...@us...> - 2007-10-17 18:06:54
|
Revision: 7531 http://docbook.svn.sourceforge.net/docbook/?rev=7531&view=rev Author: dcramer Date: 2007-10-17 11:06:49 -0700 (Wed, 17 Oct 2007) Log Message: ----------- Added test to check generate.index param when generating pdf bookmarks Modified Paths: -------------- trunk/xsl/fo/fop.xsl trunk/xsl/fo/fop1.xsl trunk/xsl/fo/ptc.xsl trunk/xsl/fo/xep.xsl Modified: trunk/xsl/fo/fop.xsl =================================================================== --- trunk/xsl/fo/fop.xsl 2007-10-13 14:32:59 UTC (rev 7530) +++ trunk/xsl/fo/fop.xsl 2007-10-17 18:06:49 UTC (rev 7531) @@ -48,6 +48,7 @@ <!-- If the object is a set or book, generate a bookmark for the toc --> <xsl:choose> + <xsl:when test="self::index and $generate.index = 0"/> <xsl:when test="parent::*"> <fox:outline internal-destination="{$id}"> <fox:label> Modified: trunk/xsl/fo/fop1.xsl =================================================================== --- trunk/xsl/fo/fop1.xsl 2007-10-13 14:32:59 UTC (rev 7530) +++ trunk/xsl/fo/fop1.xsl 2007-10-17 18:06:49 UTC (rev 7531) @@ -25,6 +25,7 @@ <!-- If the object is a set or book, generate a bookmark for the toc --> <xsl:choose> + <xsl:when test="self::index and $generate.index = 0"/> <xsl:when test="parent::*"> <fo:bookmark internal-destination="{$id}"> <fo:bookmark-title> Modified: trunk/xsl/fo/ptc.xsl =================================================================== --- trunk/xsl/fo/ptc.xsl 2007-10-13 14:32:59 UTC (rev 7530) +++ trunk/xsl/fo/ptc.xsl 2007-10-17 18:06:49 UTC (rev 7531) @@ -36,6 +36,7 @@ <!-- If the object is a set or book, generate a bookmark for the toc --> <xsl:choose> + <xsl:when test="self::index and $generate.index = 0"/> <xsl:when test="parent::*"> <fo:bookmark internal-destination="{$id}"> <fo:bookmark-title> Modified: trunk/xsl/fo/xep.xsl =================================================================== --- trunk/xsl/fo/xep.xsl 2007-10-13 14:32:59 UTC (rev 7530) +++ trunk/xsl/fo/xep.xsl 2007-10-17 18:06:49 UTC (rev 7531) @@ -123,8 +123,8 @@ <!-- Put the root element bookmark at the same level as its children --> <!-- If the object is a set or book, generate a bookmark for the toc --> - <xsl:choose> + <xsl:when test="self::index and $generate.index = 0"/> <xsl:when test="parent::*"> <rx:bookmark internal-destination="{$id}"> <rx:bookmark-label> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |