#1031 colspan support for HTML formatted tables

closed-fixed
XSL (1066)
7
2009-11-28
2009-03-30
No

Colspan is not presently supported for table|informaltable.

Suggested solution:

IN:
/fo/htmltbl.xsl

The following templates need to call table.cell.properties with a new parm similar to this:

<xsl:template match="td" mode="htmlTable">
<xsl:call-template name="table.cell.properties">
<xsl:with-param name="number-columns-spanned" select="@colspan"/>
</xsl:call-template>
</xsl:template>

<xsl:template match="th" mode="htmlTable">
<xsl:call-template name="table.cell.properties">
<xsl:with-param name="number-columns-spanned" select="@colspan"/>
</xsl:call-template>
</xsl:template>

IN:
/fo/table.xsl

The following template needs to accept the following param and apply the attribute.

<xsl:template name="table.cell.properties">

<xsl:param name="number-columns-spanned" select="1"/>

<xsl:attribute name="number-columns-spanned">
<xsl:value-of select="$number-columns-spanned"/>
</xsl:attribute>

Discussion

  • Shane Handford

    Shane Handford - 2009-03-30
    • labels: 322745 --> XSL
    • priority: 5 --> 7
     
  • Robert Stayton

    Robert Stayton - 2009-04-01
    • assigned_to: nobody --> bobstayton
     
  • Robert Stayton

    Robert Stayton - 2009-04-01

    I added support for colspan and rowspan in the templates for td and th for HTML table markup. I did not pass these to table.cell.properties, because that template is used to override cell attributes, but these two attributes are not subject to style overrides.
    I also added support for bgcolor on cells.

    I'll leave this bug open to record other problems with HTML table attributes.

     
  • Robert Stayton

    Robert Stayton - 2009-11-13

    I'm closing this bug since no new problems have been reported. I think the earlier fix from March completed the work for this bug report.

     
  • Robert Stayton

    Robert Stayton - 2009-11-13
    • status: open --> pending-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks