RE: [xsl] String Replacement problem

Subject: RE: [xsl] String Replacement problem
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Tue, 12 Jul 2005 04:35:58 +0000
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: [xsl] 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