]> granicus.if.org Git - docbook-dsssl/commitdiff
Modify revision history table to make it customizable for html5.
authorBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:16:29 +0000 (23:16 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:16:29 +0000 (23:16 +0000)
xsl/html/block.xsl

index c5c87d03ab1b9bc40b48e43c4ed68f7cd1a10b92..d50eb25a53531f44ea1ae500b6e86c544651a4d9 100644 (file)
   <div>
     <xsl:call-template name="common.html.attributes"/>
     <xsl:call-template name="id.attribute"/>
-    <table border="0" width="100%" summary="Revision history">
+    <table>
+      <xsl:if test="$css.decoration != 0">
+        <xsl:attribute name="style">
+          <xsl:text>border-style:solid; width:100%;</xsl:text>
+        </xsl:attribute>
+      </xsl:if>
+      <!-- include summary attribute if not HTML5 -->
+      <xsl:if test="$div.element != 'section'">
+        <xsl:attribute name="summary">
+          <xsl:call-template name="gentext">
+            <xsl:with-param name="key">revhistory</xsl:with-param>
+          </xsl:call-template>
+        </xsl:attribute>
+      </xsl:if>
       <tr>
         <th align="{$direction.align.start}" valign="top" colspan="3">
           <b>