[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] string matching problem


Subject: RE: [xsl] string matching problem
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 20 May 2003 16:18:15 +0300

Hi,

>  here is a sample condition
> <xsl:if test="TValue = 'True'">
>  then html
> </xsl:if>
> 
> what to do if i dont know the value of TValue .. wether it is "True" ,
> "true", "TRUE" or some thing else like that
> i want case insensitive comparision.

<xsl:if test="translate(TValue, 'TRUE', 'true')  = 'true'">

Cheers,

Jarno - God Module: Companion

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread