File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

replacing a char with more than one character

 
shankar vembu
Ranch Hand
Posts: 309
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic