Hi fop'ers,

I have horizontal rules that span across the entire length of the page. They appear as separators between rows in a table. They are called "tablerule" in my xml doc.
<tr>
<td>Cancer</td><td>12</td>
</tr>
<tablerule />
<tr>
<td>Heart Disease</td><td>30</td>
</tr>


The problem is that my tablerule element does not have the number of columns that I want it to span. I would like it to span the entire table. However the transformation that I wrote wants a number-columns-spanned attribute. I set it to the max possible, but this feels kind of a hack.
Can someone recommend a good solution to outputting a horizontal rule within a table without having to re-write or change the xml? Changing the xml would be very difficult.
Thanks!



Here is my xsl for the tablerule element:

<xsl:template match="tablerule">
<fo:table-row>
<fo:table-cell border-bottom-width="0.5mm" border-bottom-style="solid" number-columns-spanned="10">
<fo:block space-before="5pt"><xsl:text> </xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="10">
<fo:block space-before="5pt">
<xsl:text> </xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to