[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Inserting into a String

Subject: Inserting into a String
From: Bartlett Gary <GBartlett@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Mar 2001 11:16:21 -0500
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.