xsl-list
[Top] [All Lists]

RE: String Replacement problem

2005-07-11 21:35:58
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(_at_)osi-tech(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: "XSL (E-mail)" <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>