]> granicus.if.org Git - docbook-dsssl/commitdiff
Added test to check generate.index param when generating pdf bookmarks
authorDavid Cramer <david@thingbag.net>
Wed, 17 Oct 2007 18:06:49 +0000 (18:06 +0000)
committerDavid Cramer <david@thingbag.net>
Wed, 17 Oct 2007 18:06:49 +0000 (18:06 +0000)
xsl/fo/fop.xsl
xsl/fo/fop1.xsl
xsl/fo/ptc.xsl
xsl/fo/xep.xsl

index c3a06bab5627cca1399a1c736b97f5b33cc10f51..a5a6c2120e889b05d701cbf387411ee8095f5d52 100644 (file)
@@ -48,6 +48,7 @@ translates characters with code>255 back to ASCII.
   <!-- 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>
index 4e262e57c7bf60657ce9302437635071311a6b71..cda361a473c7760ac4431a0814dbb51964509384 100644 (file)
@@ -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>
index f3e25e30422ddd19dee019051f3d5ef88bc644a6..a8874d88e5c73bfe15a04c9d96a096cf8409675d 100644 (file)
@@ -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>
index 437842e415d957c361948f1a959c836ab38a1b90..0910fb3759fd3ad9018cf4dfb69a7ddd75063f6a 100644 (file)
 
   <!-- 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>