xsl-list
[Top] [All Lists]

RE: XSLT Problem - Case Conversion

2003-10-06 05:19:26
XSLT 2.0 inherits XPATH functions to do this

http://www.w3.org/TR/xquery-operators/#func-upper-case

not sure if implemented in latest SAXON though.

gl, Jim Fuller

-----Original Message-----
From: Saurabh Sinha [mailto:i_am_saurabhsinha(_at_)yahoo(_dot_)co(_dot_)in]
Sent: 06 October 2003 12:00
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] XSLT Problem - Case Conversion


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



<Prev in Thread] Current Thread [Next in Thread>