This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Expression to say "case insensitive"


I can use cocoon, xt, lotusxsl, whatever.  Can you show me how I can do this
in a semi step by step way?
Thanx
Jonathan


-----Original Message-----
From: John Dreystadt [mailto:jdreysta@arbortext.com]
Sent: Thursday, March 30, 2000 5:42 PM
To: xsl-list@mulberrytech.com
Subject: RE: Expression to say "case insensitive"


I think the only good choice would be a Java based extension (are you
using an engine where that works?) and then do the comparison using
the various java.text classes.

John Dreystadt

> -----Original Message-----
> From: owner-xsl-list@mulberrytech.com
> [mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Jonathan Asbell
> Sent: Thursday, March 30, 2000 5:32 PM
> To: 'xsl-list@mulberrytech.com'
> Subject: RE: Expression to say "case insensitive"
>
>
> Yeh, but this wont work if you have Latin characters such
> as não or vôce
> etc.  I would have to somehow import an entire encoding set.
>
>
> -----Original Message-----
> From: Kay Michael [mailto:Michael.Kay@icl.com]
> Sent: Thursday, March 30, 2000 1:09 PM
> To: 'xsl-list@mulberrytech.com'
> Subject: RE: Expression to say "case insensitive"
>
>
> > How do I express the following expression in xslt:
> >
> > if the case-insensitive value of $name == the
> > case-insensitive value of
> > "Joe"
>
> <xsl:variable name="uc">ABCDEFG.....</xsl:variable>
> <xsl:variable name="lc">abcdefg.....</xsl:variable>
>
> <xsl:if test="translate($name, $lc, $uc) = translate('Joe',
> $lc, $uc)">
>
> Mike Kay
>
>
>  XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list


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


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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]