I have URLs with some special characters and i would like to replace them and I am using xslt 1.0 so I am writing the code as below.
The provided "replace" template is working.
To confirm this use the following transformation:
'
" "
when the transformation is applied on this XML document:
the wanted, correct result is produced:
"Abc%27Xyz%27Tuv"
The problem may be in the way you specify the replace
parameter (uneven number of apostrophes in the expression):
Instead of:
Use:
'