]> granicus.if.org Git - docbook-dsssl/commitdiff
Added <xsl:when> for subtitle in section.heading template. Closes bug #2329704.
authorMauritz Jeanson <mj@johanneberg.com>
Fri, 5 Dec 2008 19:19:24 +0000 (19:19 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Fri, 5 Dec 2008 19:19:24 +0000 (19:19 +0000)
xsl/html/sections.xsl

index b85e4627e88b555f2230cee89a825d020baed5b7..2fe63499005854092725a46e1143d826956fc8c6 100644 (file)
 
   <xsl:variable name="id">
     <xsl:choose>
+      <!-- Make sure the subtitle doesn't get the same id as the title -->
+      <xsl:when test="self::subtitle">
+        <xsl:call-template name="object.id">
+          <xsl:with-param name="object" select="."/>
+        </xsl:call-template>
+      </xsl:when>
       <!-- if title is in an *info wrapper, get the grandparent -->
       <xsl:when test="contains(local-name(..), 'info')">
         <xsl:call-template name="object.id">