XML/XSL: Help with JavaScript please
Hi,
I have an XML file that I need to translate into a different format. To be clear, I have a field that has carriage returns embedded that is one field - I need to split this into several fields. Example:
Source
=====
<text>
line 1(invisible CR/LF)
line 2(invisible CR/LF)
line 3
</text>
Required Target
===========
<text>line1</text>
<text>line2</text>
<text>line3</text>
The only way that I can think to achieve this is to use JavaScript in my XSL transformation. Can anybody supply an example of this or has anybody else come across this problem?
Would be very grateful for some assistance.
Thanks in advance,
DJ