]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed fo:marker output on bridgehead to match current section level.
authorBob Stayton <bobs@sagehill.net>
Tue, 13 Dec 2005 16:47:09 +0000 (16:47 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 13 Dec 2005 16:47:09 +0000 (16:47 +0000)
xsl/fo/sections.xsl

index e10bbc83e40fc46f9c9b34a538ff6b203095b654..551fd7e1111073160ebbad95eb33793f6c9a115d 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
+  <xsl:variable name="marker">
+    <xsl:choose>
+      <xsl:when test="$level &lt;= $marker.section.level">1</xsl:when>
+      <xsl:otherwise>0</xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+
+  <xsl:variable name="marker.title">
+    <xsl:apply-templates/>
+  </xsl:variable>
+
   <xsl:variable name="id">
     <xsl:call-template name="object.id"/>
   </xsl:variable>
       <xsl:with-param name="title">
         <xsl:apply-templates/>
       </xsl:with-param>
+      <xsl:with-param name="marker" select="$marker"/>
+      <xsl:with-param name="marker.title" select="$marker.title"/>
     </xsl:call-template>
   </fo:block>
 </xsl:template>