Maven Doxia
  1. Maven Doxia
  2. DOXIA-78

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.

      1. doxia.patch
        2 kB
        Henning Schmiedehausen

        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

          • Assignee:
            Lukas Theussl
            Reporter:
            Henning Schmiedehausen
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: