Possible Duplicate:
Interpreting newlines with XSLT xsl:text?
how to convert NEWLINE into <BR/>
with XSLT?
I have
<text>
some text with
new lines
</text>
I want to have
<p> some text with <br /> new lines </p>
Possible Duplicate:
Interpreting newlines with XSLT xsl:text?
how to convert NEWLINE into <BR/>
with XSLT?
I have
<text>
some text with
new lines
</text>
I want to have
<p> some text with <br /> new lines </p>
This transformation:
when applied on this XML document:
produces the wanted, correct result: