]> granicus.if.org Git - docbook-dsssl/commitdiff
Changed handling of titles for note, warning, caution, important,
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 17 Jul 2007 16:14:37 +0000 (16:14 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 17 Jul 2007 16:14:37 +0000 (16:14 +0000)
tip admonitions: We now output and HTML h3 head only if
admon.textlabel is non-zero or if the admonition actually contains
a title; otherwise, we don't output an h3 head at all.
(Previously, we were outputting an empty h3 if the admon.textlabel
was zero and if the admonition had no title.)

xsl/html/admon.xsl

index 61c6a5af71d67c831b09641903fbe68c91fb8b38..e79dfc56f23774fc42550b33781c35870b2582d4 100644 (file)
       </xsl:attribute>
     </xsl:if>
 
-    <h3 class="title">
-      <xsl:call-template name="anchor"/>
-      <xsl:if test="$admon.textlabel != 0 or title or info/title">
+    <xsl:if test="$admon.textlabel != 0 or title or info/title">
+      <h3 class="title">
+        <xsl:call-template name="anchor"/>
         <xsl:apply-templates select="." mode="object.title.markup"/>
-      </xsl:if>
-    </h3>
+      </h3>
+    </xsl:if>
 
     <xsl:apply-templates/>
   </div>