This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

replacing a char with more than one character

 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I need to replace a char in my string with two chars(say replace 'a' with 'bc'). translate function wud not help cos it can only perform a char-char translation. So i thot I wud call a javascript function which can do this for me. But how do I call a javascript function from my xsl. and this needs to be called while the transformation is taking place. i am basically performing a xml to xml transformation.
Or if anyone knows a better idea to replace a single char with two chars, let me know please.
Regards,
Shankar.
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XSLT Questions and Answers is the first place to visit if you have a problem. In particular, Replace.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic