0

I have an xslt element that takes the input as INDIA;JAPAN;CHINA;CANADA etc. I want the output to appear as INDIA,JAPAN,CHINA,CANADA. (i.e) i want to replace the dilimeter ";" with ","

  • Possible duplicate of [Java: Replace spaces in a String with a different whitespace character in?](http://stackoverflow.com/questions/34662643/java-replace-spaces-in-a-string-with-a-different-whitespace-character-in) – Maheshwar Ligade May 05 '16 at 11:31

2 Answers2

0

Use the translate() function:
http://www.w3.org/TR/xpath/#function-translate

michael.hor257k
  • 113,275
  • 6
  • 33
  • 51
0

xslt 2.0 supports string replace function.

Gaurav
  • 811
  • 9
  • 21