Subject: Re: [xsl] XSLT Problem - Case Conversion From: r.devries@xxxxxxxx Date: Mon, 6 Oct 2003 12:53:54 +0200 |
Hi Saurabh, Use the build-in translate(): translate($yourvar, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') If you need it often, you can make a template for it and call that. Greetings René {@ @} ^ \_/ "You don't need eyes to see, you need vision!" TJIP PCL Steenovenweg 3 5708 HN Helmond The Netherlands tel: +31(0) 492 502 222 fax: +31(0) 492 502 299 e-mail: R.deVries@xxxxxxxx internet: www.tjip.com ***************************DISCLAIMER******************************** Deze e-mail is uitsluitend bestemd voor de geadresseerde(n). Verstrekking aan en gebruik door anderen is niet toegestaan. TJIP PCL sluit iedere aansprakelijkheid uit die voortvloeit uit elektronische verzending. This e-mail is intended exclusively for the addressee(s), and may not be passed on to, or made available for use by any person other than the addressee(s). TJIP PCL rules out any and every liability resulting from any electronic transmission. Saurabh Sinha <i_am_saurabhsinha@xxxxxxxx To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx .in> cc: Sent by: Subject: [xsl] XSLT Problem - Case Conversion owner-xsl-list@xxxxxxxxxxxx rytech.com 06-10-2003 13:00 Please respond to xsl-list Hi, Is there any built-in function like toupper() or tolower() in XSL so that we can convert the text - such as upper to lower or vice versa? e.g. I want to see 'STATUS' or 'STATUSCODE' as 'Status' or 'Statuscode. If there is no built-in function how shall I use it in xsl document? Thanks, Saurabh struct.xml ---------- <struct> <var name="STATUS"> <string>No Error</string> </var> <var name="STATUSCODE"> <string>0</string> </var> </struct> struct.html ----------- Current Output ------------- STATUS No Error STATUSCODE 0 Expected Output ------------- Status No Error Statuscode 0 ________________________________________________________________________ Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT Problem - Random Ord, SHEIKH Sajjad | Thread | [xsl] XSLT Problem - Case Convers, Saurabh Sinha |
Re: [xsl] Trying to use Docbook tra, Jirka Kosek | Date | [xsl] XSLT Problem - Case Convers, Saurabh Sinha |
Month |