This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
search and replace
- From: Saverio Perugini <sperugin at csgrad dot cs dot vt dot edu>
- To: <XSL-List at lists dot mulberrytech dot com>
- Date: Sat, 9 Feb 2002 19:56:29 -0500 (EST)
- Subject: [xsl] search and replace
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello,
There is much discussion about the following problem on the Web and
various XSLT faqs, discussion lists, etc., but there seems to be
no consensus.
I am interested in the most "painless" and "succinct" method of
performing a global string replacement using XSTL.
e.g., relace(originalString, pattern, replacement) =>
relace("coffee and tea and milk", " and ", " ") yields the
string "coffee tea milk".
Thank You.
Saverio Perugini
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list