Text wrap in xsl:fo- table-cell

Here should go questions about transforming XML with XSLT and FOP.
Posts: 4
Joined: Thu Oct 25, 2007 1:57 pm

Text wrap in xsl:fo- table-cell

Post by sanjeev.gour » Thu Oct 25, 2007 3:12 pm


I am creating a PDF using xsl-fo. Whenever my text is very large, it goes beyond the table cell in the column. I want that the text should be wrapped when it is large. Is there any option to do this???

My table cell is like the following-

Code: Select all

<fo:table-cell padding="2pt" border="0.2pt solid black"
background-color="#f1e1c1" width="auto">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:value-of select="div" />