xsl-list
[Top] [All Lists]

xslt replace special characters

2002-11-08 12:40:17
How do you replace characters in xslt.

i have a url string that may contain '?' , '&', and '='
i want to convert

? to %3f
= to %3d
& to %26

is there a good way to do this? i try using translate function but it doesn't work that well. i've also tried writing a recursive template that checks for all occurence of these characters and it doesnt seem to work. any idea?

i need help.

thanks.

..........................................................
Email: arisuu(_at_)hotmail(_dot_)com
Cell: (650) 483-8164
Work: (212) 201-0881
..........................................................

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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