#1290 Suppressing cell borders when table frame=none

output: HTML
closed-fixed
XSL (1066)
5
2014-01-20
2013-02-17
Jan Tosovsky
No

Despite the [informal]table 'frame' attribute is set to none (table.borders.with.css = 1), the individual cells still have their borders. I've fixed this in my local copy of the xhtml/table.xsl file (entry|entrytbl template modifying the rowsep/colsepvariables):
...
</xsl:when>
<!-- two new conditions -->
<xsl:when test="ancestor::table[1][@frame='none']">0</xsl:when>
<xsl:when test="ancestor::informaltable[1][@frame='none']">0</xsl:when>

<xsl:otherwise>
<xsl:call-template name="inherited.table.attribute">
...
I didn't succeed in placing this code directly to my customization layer because of priority issues. I wasn't able to fix it using common scenarios. I'd be grateful for fixing it (or using another approach).

DocBook XSL 1.78.0 / Saxon 6.5.5 / DocBook 4.4

Discussion

  • Jan Tosovsky
    Jan Tosovsky
    2013-02-17

    During processing more complex tables I realized the same change has to be applied also into the 'empty.table.cell' template in the same table.xsl stylesheet file.

     
  • Robert Stayton
    Robert Stayton
    2013-08-29

    Actually, the table @frame attribute is not supposed to turn off individual cell borders, only the outer table border. Cell borders are controlled by @rowsep and @colsep. This this doc for more details:

    http://www.sagehill.net/docbookxsl/Borders.html

     
  • Robert Stayton
    Robert Stayton
    2013-08-29

    • status: open --> pending-invalid
    • assigned_to: Robert Stayton
     
  • Robert Stayton
    Robert Stayton
    2014-01-20

    • Status: pending-invalid --> closed-fixed