xsl-list
[Top] [All Lists]

RE: replacing %20

2004-01-09 01:12:37
Translate, as I understand it, takes the form:
translate(value,string1,string2)
and simply replaces any character it finds in "string1" with 
the corresponding character in  "string2"

Is there a way to replace "%20" with " ", but not "2" with " 
" easily in xslt?


Yes, that is quite easy. I use this solution to replace one string with another:
http://www.dpawson.co.uk/xsl/sect2/replace.html

Cheers,
Flemming

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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