[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Inserting into a String
Greetings - I am looking to translate a string value as follows: fooBarJones to FOO_BAR_JONES. Basically inserting an underscore before any and all Uppercase characters and then translating the result to upper case. My initial approach was to replace all of the uppercase characters in the original string with a special character. I would then use a combination of substring-before and substring (against the original string) to replace the special character with the underscore and the original character. But I cannot find a function that I can use to return the index-of the special character to send into the substring function. I would appreciate any insight into how to get the index of a character within a string or any alternative solutions to the problem. Thanks - Gary Bartlett XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|