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

Re: CASE-CONVERSION

Subject: Re: CASE-CONVERSION
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Tue, 5 Mar 2002 13:32:42 -0000
stylus case converter
u may use the translate tag

try this

translate(yourelementorvar,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRS
TUVWXYZ')


cheers, jim fuller

----- Original Message -----
From: "Kim Durand" <vsd18@xxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, March 05, 2002 1:17 PM
Subject:  CASE-CONVERSION


> HI i have a problem of case conversion
>
> xml file looks like this
>
> <colors>
>
>   <color>red</color>
>   <color>blue</color>
>   <color>orange</color>
>   <color>black</color>
>   <color>white</color>
>
> </colors>
>
> i need to apply transformation and produce the result
>
> Colors:
>
> RED BLUE ORANGE BLACK WHITE
>
> notice that the case is changed in the result.. it is uppercase.
> the xsl should convert to uppercase , no matter what it gets as
> input..
>
> i can try translate() function , but it requires to know what i
> want to translate and what i want to translate it to.In my case
> since i dont know what would be the text in the color ellement, I
> reckon translate() wouldnt be of much help .
>
> Can any one suggest me how i can go ahead with this??
>
> Many Thanks
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.