[xsl] Usage of XSLT in the field of text replacement.

Subject: [xsl] Usage of XSLT in the field of text replacement.
From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Wed, 08 Oct 2008 16:09:04 +0530
Hi
Can xslt2.0 play a role in the field of text replacement. I want to transform an xml to another xml and want to replace some text as well. For that purpose I want to restore "find and replace" text in a separate file with pipe separated delimeter.


Input
<doc>
<para>line no. 1</para>
<para>line no. 2</para>
<para>para number. 50</para>
<para>example of [text] replacement</para>
</doc>

OUTPUT
<d>
<p>line no. ONE</p>
<p>line no. TWO</p>
<p>para number. FIFTY</p>
<para>example of [TEXT] replacement</para>
</d>

temp.ini
1|ONE
2|TWO
3|THREE
[text]|[TEXT]

Current Thread