]> granicus.if.org Git - docbook-dsssl/commitdiff
Changed section.level template to return number that matches
authorBob Stayton <bobs@sagehill.net>
Tue, 1 Oct 2002 05:05:18 +0000 (05:05 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 1 Oct 2002 05:05:18 +0000 (05:05 +0000)
the section level (sect1 = 1, etc.), and adjusted templates
that use section.level accordingly to produce same output
as before.

xsl/fo/qandaset.xsl
xsl/fo/refentry.xsl
xsl/fo/sections.xsl

index d4ccb4a7f14303ba6c9d7783c6df4920e32ce46a..77b14971c4e3616a0f72e9306fda32aaf2c054a3 100644 (file)
@@ -60,7 +60,7 @@
   </xsl:variable>
 
   <xsl:call-template name="section.heading">
-    <xsl:with-param name="level" select="$sectlvl"/>
+    <xsl:with-param name="level" select="$sectlvl + 1"/>
     <xsl:with-param name="title">
       <xsl:apply-templates/>
     </xsl:with-param>
 
   <xsl:call-template name="section.heading">
     <xsl:with-param name="level"
-                    select="$sectlvl + count(ancestor::qandadiv)"/>
+                    select="$sectlvl + 1 + count(ancestor::qandadiv)"/>
     <xsl:with-param name="title">
       <xsl:apply-templates/>
     </xsl:with-param>
index 02c09f58d64070030a261acac57223aed4be8238..f92173065cd7e5a145c720d27f8d76f37a202ebf 100644 (file)
 
     <xsl:if test="$passivetex.extensions != 0">
       <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 
-                      fotex-bookmark-level="{$level + 1}" 
+                      fotex-bookmark-level="{$level + 2}" 
                       fotex-bookmark-label="{$id}">
         <xsl:value-of select="$title"/>
       </fotex:bookmark>
index 4420adcba5fa048857dab4d0933c23d13f001d03..49fdd24205d0ca338f327a9fe7fa1447553fa17a 100644 (file)
 
     <xsl:if test="$passivetex.extensions != 0">
       <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 
-                      fotex-bookmark-level="{$level + 1}" 
+                      fotex-bookmark-level="{$level + 2}" 
                       fotex-bookmark-label="{$id}">
         <xsl:value-of select="$title"/>
       </fotex:bookmark>