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

RE: replace -x to -X

Subject: RE: replace -x to -X
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 10 Jul 2006 21:35:37 +0100
x to x
In XSLT 2.0:

<xsl:analyze-string select="$tmp_string" regex="^.|-.">
    <xsl:value-of select-"upper-case(.)"/>
    <xsl:value-of select-"lower-case(.)"/>

Not tested.

Michael Kay


> -----Original Message-----
> From: Renate [mailto:renaate@xxxxxxxxx] 
> Sent: 10 July 2006 17:07
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  replace -x to -X
> I have a string $tmp_string.
> for ex., JIMMY-DIMMy
> And I need to change the following:
> first letter is in uppercase
> other letters are in lowercase
> first letters after "-" sign also is in uppercase
> the result will be:
> Jimmy-Dimmy
> I know how to make Jimmy-dimmy, but how to make Jimmy-Dimmy...???

Current Thread


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.
First Name
Last Name
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.