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

RE: String Replacement problem

Subject: RE: String Replacement problem
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Tue, 12 Jul 2005 04:35:58 +0000
xsl string replacement
Lakshmi Narayana,

See "XSLT Cookbook" from O'Reilly (the publisher). Even if you don't buy the book, its code is freely downloadable, and includes many "recipes" for node manipulation, string manipulation, etc.

In your particular case just do something like:

concat( str1, substring(str2, string-length(str1))

--A

From: "Lakshmi narayana" <lchintala@xxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "XSL (E-mail)" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  String Replacement problem
Date: Tue, 12 Jul 2005 10:01:57 +0500


Hi.. can any one help me in replacing a string. I want a template which accepts two strings. In the first string, second string should be replaced. That to from the starting of the first string, replacing should take place.

eg:
first string : ABCDEFGHIJ
second String : 123
	After replacing the first string should be like this : 123DEFGHIJ

Thanks,
Laxmi Narayana


_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar  get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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.