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

String Replacement in XML using XSLT

Subject: String Replacement in XML using XSLT
From: Senthilkumaravelan Krishnanatham <senthil@xxxxxxxxx>
Date: Mon, 25 Sep 2006 09:47:28 -0700
 String Replacement in XML using XSLT
Hi All,
I need help in logic of replacing the string in XML for the below input.
<test>
<content_vars>
<content name="subject"> Hello [[BUYERS_NAME]]</content>
<content name="text"> REF Order [ORDER_NUMBER]</content>
</content_vars>
<BUYERS_NAME>
SENTHIL
</BUYERS_NAME>
< ORDER_NUMBER >
1234
</ORDER_NUMBER >


</test>

Output should be
<html>
<body>
<P>Hello SENTHIL</p>
<p> REF Order 1234</p>
</body>
</html>

Is there anyway I can do it in XSLT?
Any suggestion are welcome.

Thanks,
Senthil

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.