]> granicus.if.org Git - docbook-dsssl/commitdiff
Convert formal.object.heading to respect make.clean.html param.
authorBob Stayton <bobs@sagehill.net>
Mon, 9 Aug 2010 18:25:58 +0000 (18:25 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 9 Aug 2010 18:25:58 +0000 (18:25 +0000)
xsl/html/formal.xsl

index 54a3ca71b2f8b62e0d4848056b593fcbcdf71c95..b4909b7514afa83196a09f925fa7c06b70667045 100644 (file)
     </xsl:apply-templates>
   </xsl:param>
 
-  <p class="title">
-    <b>
-      <xsl:copy-of select="$title"/>
-    </b>
-  </p>
+
+  <xsl:choose>
+    <xsl:when test="$make.clean.html != 0">
+      <xsl:variable name="html.class" select="concat(local-name($object),'-title')"/>
+      <div class="{$html.class}">
+        <xsl:copy-of select="$title"/>
+      </div>
+    </xsl:when>
+    <xsl:otherwise>
+      <p class="title">
+        <b>
+          <xsl:copy-of select="$title"/>
+        </b>
+      </p>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template name="informal.object">