]> granicus.if.org Git - docbook-dsssl/commitdiff
Convert block quote layout table to be html5 compatible.
authorBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:24:54 +0000 (23:24 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:24:54 +0000 (23:24 +0000)
xsl/html/block.xsl

index d50eb25a53531f44ea1ae500b6e86c544651a4d9..aac0367a9809e005279343ee50fa4e5a286a0dd1 100644 (file)
 
     <xsl:choose>
       <xsl:when test="attribution">
-        <table border="0" width="100%"
-               cellspacing="0" cellpadding="0" class="blockquote"
-               summary="Block quote">
+        <table border="{$table.border.off}" class="blockquote">
+          <xsl:if test="$css.decoration != 0">
+            <xsl:attribute name="style">
+              <xsl:text>width: 100%; cellspacing: 0; cellpadding: 0;</xsl:text>
+            </xsl:attribute>
+          </xsl:if>
+          <xsl:if test="$div.element != 'section'">
+            <xsl:attribute name="summary">Block quote</xsl:attribute>
+          </xsl:if>
           <tr>
             <td width="10%" valign="top">&#160;</td>
             <td width="80%" valign="top">