[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: replace -x to -X
In XSLT 2.0: <xsl:analyze-string select="$tmp_string" regex="^.|-."> <xsl:matching-substring> <xsl:value-of select-"upper-case(.)"/> </xsl:matching-substring> <xsl:non-matching-substring> <xsl:value-of select-"lower-case(.)"/> </xsl:non-matching-substring> </xsl:analyze-string> Not tested. Michael Kay http://www.saxonica.com/ > -----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...???
|
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
|