Hi All ,
I am converting a InfoPath Form to PDF and I applied XSL Stylesheet for the same , In InfoPath I have a multiline textbox and line break is not preserved while converting to XSL all the data is displayed in a singleline , below is the formatting I am using , can anybody suggest to carry over the line break during XSL processing .
<span hideFocus="1" class="xdTextBox" xd:xctname="PlainText" xd:CtrlId="CTRL" xd:binding="my:FieldName" xd:datafmt=""string","plainMultiline""
style="OVERFLOW-X: auto; OVERFLOW-Y: auto; WIDTH: 100%; FONT-FAMILY: Arial; WORD-WRAP: break-word; WHITE-SPACE: normal; HEIGHT: 90px; FONT-SIZE: small;display:inline-block;white-space: pre">
<xsl:choose>
<xsl:when test="function-available('xdFormatting:formatString')">
<xsl:value-of select="xdFormatting:formatString(my:FieldName,"string","plainMultiline")"
disable-output-escaping="yes"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="my:FieldName"
disable-output-escaping="yes"/>
</xsl:otherwise>
</xsl:choose>
</span>
Thanks
NS
srujan