]> granicus.if.org Git - docbook-dsssl/commitdiff
Added fotex:bookmark to the separate article/appendix template
authorBob Stayton <bobs@sagehill.net>
Thu, 7 Aug 2003 18:37:05 +0000 (18:37 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 7 Aug 2003 18:37:05 +0000 (18:37 +0000)
which didn't generate Passivetex bookmarks.

xsl/fo/component.xsl

index 0c2c59d859724a9703e860b5ffd78a7e8d81af73..67a9903ab9e76c0d03a5aff3bd0349cf558bd4aa 100644 (file)
     <xsl:call-template name="object.id"/>
   </xsl:variable>
 
+  <xsl:variable name="titleabbrev">
+    <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+  </xsl:variable>
+
   <fo:block id='{$id}'>
+    <xsl:if test="$passivetex.extensions != 0">
+      <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 
+                      fotex-bookmark-level="{count(ancestor::*)+2}" 
+                      fotex-bookmark-label="{$id}">
+        <xsl:value-of select="$titleabbrev"/>
+      </fotex:bookmark>
+    </xsl:if>
+
+    <xsl:if test="$axf.extensions != 0">
+      <xsl:attribute name="axf:outline-level">
+        <xsl:value-of select="count(ancestor::*)+2"/>
+      </xsl:attribute>
+      <xsl:attribute name="axf:outline-expand">false</xsl:attribute>
+      <xsl:attribute name="axf:outline-title">
+        <xsl:value-of select="$titleabbrev"/>
+      </xsl:attribute>
+    </xsl:if>
+
     <xsl:call-template name="section.heading">
       <xsl:with-param name="level" select="2"/>
       <xsl:with-param name="title">
         <xsl:apply-templates select="." mode="object.title.markup"/>
       </xsl:with-param>
-      <xsl:with-param name="titleabbrev">
-        <xsl:apply-templates select="." mode="titleabbrev.markup"/>
-      </xsl:with-param>
+      <xsl:with-param name="titleabbrev" select="$titleabbrev"/>
     </xsl:call-template>
 
     <xsl:apply-templates/>