Issue Details (XML | Word | Printable)

Key: DOXIA-78
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lukas Theussl
Reporter: Henning Schmiedehausen
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven Doxia

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

Created: 10/Dec/06 10:32 AM   Updated: 07/Mar/08 07:33 AM   Resolved: 07/Mar/08 07:33 AM
Return to search
Component/s: Module - Xdoc, Module - Xhtml, Sink API
Affects Version/s: 1.0-alpha-8
Fix Version/s: 1.1

Time Tracking:
Not Specified

File Attachments: 1. Text File doxia.patch (2 kB)



 Description  « Hide

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.



Jason van Zyl added a comment - 28/May/07 01:04 PM

Patches applied.


Lukas Theussl added a comment - 11/Oct/07 02:48 AM

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


Lukas Theussl added a comment - 07/Mar/08 07:33 AM

Fixed with DOXIA-204.