Hi,
I am fetching the data from the database and assigning it to the textarea. Before that Xml is loaded with data and then stylesheet gets applied to the xml to generate the html output with textarea with data in it. I want to replace the newline character with '\n' character. I tried to use following psedudo code
:
:
<xsl:when test="contains( $text,'
')">
<xsl:value-of select="substri ng-before($text, '
')"/>\n<xsl:call-template name="break">
<xsl:with-param name="text" select="substri ng-after($text,'
' )"/>
</xsl:call-template>
</xsl:when>
This did not worked. I have also tried to use '
' instead but that also did not worked.
Can anybody tell me how to search and replace the newline character using xslt?
Regards
Amol Lokhande