Subject: [xsl] Inserting into a String From: Bartlett Gary <GBartlett@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 15 Mar 2001 11:16:21 -0500 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [ANN] eXcelon Ships Portal Se, Christopher Parkerso | Thread | RE: [xsl] Inserting into a String, Michael Kay |
[xsl] [ANN] eXcelon Ships Portal Se, Christopher Parkerso | Date | RE: [xsl] Comment about XSLT Compli, Michael Kay |
Month |