]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #1737581 (table.borders.with.css should suppress border attribute).
authorMauritz Jeanson <mj@johanneberg.com>
Wed, 11 Jul 2007 09:42:54 +0000 (09:42 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Wed, 11 Jul 2007 09:42:54 +0000 (09:42 +0000)
xsl/html/table.xsl

index 2f08ee2b2d1ba9ca213aa896ae0405ac73ab16e7..54275adce81865c9c510e248996bd5a7caf045ea 100644 (file)
 
     <xsl:choose>
       <xsl:when test="$table.borders.with.css != 0">
-        <xsl:attribute name="border">0</xsl:attribute>
         <xsl:choose>
           <xsl:when test="../@frame='all' or (not(../@frame) and $default.table.frame='all')">
             <xsl:attribute name="style">
               </xsl:call-template>
             </xsl:attribute>
           </xsl:when>
+         <xsl:when test="../@frame='none'">
+           <xsl:attribute name="style">
+             <xsl:text>border: none;</xsl:text>
+           </xsl:attribute>
+         </xsl:when>
           <xsl:otherwise>
             <xsl:attribute name="style">
               <xsl:text>border-collapse: collapse;</xsl:text>
             </xsl:attribute>
           </xsl:otherwise>
         </xsl:choose>
+
       </xsl:when>
       <xsl:when test="../@frame='none' or (not(../@frame) and $default.table.frame='none') or local-name(.) = 'entrytbl'">
         <xsl:attribute name="border">0</xsl:attribute>