Let's assume I have a simple XML file:
<data>
<text>Hello world!<br>Nice to see you all!<br>Goodbye!</text>
</data>
Now I want to replace all <br>
strings with
strings so the result should be e.g.:
<transformed>
<text>Hello world! Nice to see you all! Goodbye!</text>
</transformed>
How do I do this?
XSL replace functionality is easy to implement (e.g. in http://geekswithblogs.net/Erik/archive/2008/04/01/120915.aspx) but the tricky part is to get the XSL transformer to output those
strings.. I either get invisible normal linefeed or &#10;
Perfect answer would be an XSL template which does the trick.
Use:
output:
NB!:
Set
disable-output-escaping
attribute toyes