I am trying to get colspan working in XSLT but it just will not work for me...here is what I have please tell me where I am going wrong.
<xsl:attribute-set name="colspan-2">
<xsl:attribute name="colspan">2</xsl:attribute>
</xsl:attribute-set>
<fo:table-cell xsl:use-attribute-sets="valign-c title border colspan-2">
<fo:block>
<xsl:value-of select="data"/>
</fo:block>
</fo:table-cell>
My other attributes work fine, but colspan-1 causes everything to fail. Seems to me like this should work, but it not. I am probably missing something silly, but any help is greatly appreciated.
Don't confuse XSL-FO with HTML.
HTML uses colspan
XSL-FO uses number-columns-spanned
So, if you try replace colspan
with number-columns-spanned
then all should be well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With