In the xml2rfc format, tables have this funny form:
<texttable>
<tcol>header 1</tcol><tcol>header 2</tcol>
<c>data 1</c><c>data 2</c>
</texttable>
i.e., there are no elements designating a row; there are just the
<tcol> elements for headings, and then a multiple of that number of
<c> elements for each row of data.
Is there a way to handle this in xxe? I've got <texttable> styled as
a table, and <tcol> and <c> as table-cell, but since there's no way to
get table-row groupings from just css, each cell is its own row in the
table.
If it makes it more clear, I've appended an xsl transform for this
kind of table to HTML.
Thanks,
Bill
<xsl:apply-templates select="preamble" />
<table summary="{preamble}" border="1" cellpadding="3" cellspacing="0">
<thead>
<tr>
<xsl:apply-templates select="ttcol" />
</tr>
</thead>
<tbody>
<xsl:variable name="columns" select="count(ttcol)" />
<xsl:for-each select="c[(position() mod $columns) = 1]">
<tr>
<xsl:for-each select=". | following-sibling::c[position()
< $columns]">
<td class="top">
<xsl:variable name="pos" select="position()" />
<xsl:variable name="col" select="../ttcol[position() = $pos]" />
<xsl:if test="$col/@align">
<xsl:attribute name="style">text-align: <xsl:value-of
select="$col/@align" />;</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="node()" />
 
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</tbody>
</table>
<xsl:apply-templates select="postamble" />
</xsl:template>
<xsl:template match="ttcol">
<th valign="top">
<xsl:variable name="width">
<xsl:if test="@width">width: <xsl:value-of select="@width" />; </xsl:if>
</xsl:variable>
<xsl:variable name="align">
<xsl:choose>
<xsl:when test="@align">text-align: <xsl:value-of
select="@align" />;</xsl:when>
<xsl:otherwise>text-align: left;</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="style"><xsl:value-of
select="concat($width,$align)" /></xsl:attribute>
<xsl:apply-templates />
</th>
</xsl:template>