[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Usage of XSLT in the field of text replacement.

Subject: Usage of XSLT in the field of text replacement.
From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Wed, 08 Oct 2008 16:09:04 +0530
 Usage of XSLT in the field of text replacement.
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.