Maven Doxia

Doxia XDOC parser and XHTML renderer ignore "rowspan" and "colspan" attributes for tables

Details

  • Number of attachments :
    1

Description

The xdoc parser ignores rowspan and colspan attributes for <th> and <td> cells (even though the DTD says that these are legal) and the XHTML renderer subsequently does not render out these attributes.

As the Sink-API offers methods for generating table-cells with a defined width, this is easy to implement (see attached patch), but the rowspan attribute would require new methods in the (very unflexible) API that take both height and width.

The attached patch fixes the colspan problem for the xdoc parser and the xhtml renderer.

Activity

Hide
Jason van Zyl added a comment -

Patches applied.

Show
Jason van Zyl added a comment - Patches applied.
Hide
Lukas Theussl added a comment -

Re-opening, this patch introduced a bug as it mixes up width with colspan. The sink API currently doesn't know anything about cell spanning, see my proposal at http://docs.codehaus.org/display/DOXIA/Proposed+Changes+to+the+Sink+API

Show
Lukas Theussl added a comment - Re-opening, this patch introduced a bug as it mixes up width with colspan. The sink API currently doesn't know anything about cell spanning, see my proposal at http://docs.codehaus.org/display/DOXIA/Proposed+Changes+to+the+Sink+API
Hide
Lukas Theussl added a comment -

Fixed with DOXIA-204.

Show
Lukas Theussl added a comment - Fixed with DOXIA-204.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: