[thelist] Replace function

Jason Bauer jbauer at chimesnet.com
Mon Sep 30 21:23:01 CDT 2002


>  Does XSLT have a replace function?

Not really, but kind of. XPath has a translate function that does a very
simple replace function.

http://www.vbxml.com/xsl/functranslate.asp

All this funciton does is takes two lists of characters, and replaces all
occurrences of a character in the first list with the corresponding
character in the second list. So, you can do case changes easily, but
replacing "Jane" with "John" would not work. I don't know of any other way
to do replacing with XSL or XPath.

---
Jason Bauer
jbauer at chimesnet.com
Programmer/Analyst
Chimes, Inc.





More information about the thelist mailing list