#1329 missing borders in HTML table markup with row spans

open
None
5
2014-03-07
2014-03-07
Robert Stayton
No

In a table using HTML markup, if uses rowspan="3" to span downward, then the number of elements in the subsequent two rows is reduced because of the span. However, the template that computes table cell borders named 'html.table.cell.rules' does not check for preceding row spans. It uses this simple test on each cell:

  <xsl:if test="following-sibling::*">

But if there is no following sibling present because the previous cell spans downward, then this test fails, and a cell in the middle of a table does not get its right border. The template needs to keep track of row spans and column positions like the CALS table templates.

Discussion