Replace CRLF with <P> in XSL
Posted on 2001-06-14
I have some XSL like this,
<xsl:copy-of select="$datavalue" />
and datavalue contains carriage return/line feed characters. Is it possible (in XSL) to replace the CRLF with a "<P/>" tag for correct rendering in HTML?
In Visual Basic, I would just do:
mystr=Replace(mystr, chr$(13), "<P/>")