I need to wrap the text to next line if it exceeds the length of the table cell in XSL-FO.
Sample XSL-FO:
<fo:table-row>
<fo:table-cell padding-bottom="3px" text-align="right" width="4cm" margin="0" margin-right="0.27cm">
<fo:block-container>
<fo:block >
<fo:inline>Herewith: </fo:inline>
</fo:block>
</fo:block-container>
</fo:table-cell>
<fo:table-cell padding-bottom="3px" text-align="left" width="7cm" margin="0" margin-left="-0.22cm">
<fo:block-container>
<fo:block>
<fo:inline font-family="FrutigerLTStd-Bold" font-weight="bold">
<xsl:value-of select="herewith"/>
</fo:inline>
</fo:block>
</fo:block-container>
</fo:table-cell>
Here if table cell value somethingxhsjdjfjkshkjkh" values exceeds, it will not wrap it into next line until we give some space between the values. I tried with wrap-option="wrap". But if there is a space in values only, then it will bring it to next line.
Can anyone help on this?