]> granicus.if.org Git - docbook-dsssl/commitdiff
Make revhistory layout table compatible with html5.
authorBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:39:14 +0000 (23:39 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:39:14 +0000 (23:39 +0000)
xsl/html/titlepage.xsl

index fc839e1fec8d68497281f26aa3a7b422bb161fd2..4107e8000130b247202d6e797af39a67a6db86f1 100644 (file)
     <div>
       <xsl:apply-templates select="." mode="common.html.attributes"/>
       <xsl:call-template name="id.attribute"/>
-      <table border="1" 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="{$numcols}">
             <b>