Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Preserving Line Break XML/XSLT processing

$
0
0

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="&quot;string&quot;,&quot;plainMultiline&quot;" 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,&quot;string&quot;,&quot;plainMultiline&quot;)" 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


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>