Search and Replace in XSLT

wxdqz

New Member
I'm posting this as a sort-of cross thread of <!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=27004">http://forums.webdeveloper.com/showthre ... adid=27004</a><!-- m -->, in a way to try and tackle the problem from a different angle.

I am trying to achieve "search and replace" functionality within my XSLT, where any instances of carriage return and/or new lines are replaced with <br> tags in the resultant HTML file.

So if I was to have the following XML...<TEXTTAG>This is before,
and this is after the carriage return.</TEXTTAG>...the output would be...
This is before,<br>and this is after the carriage return.If anybody could give me any advice I'd really appreciate it
Cheers,
Tom :)
 
Back
Top