Subject: RE: Expression to say "case insensitive" From: "John Dreystadt" <jdreysta@xxxxxxxxxxxxx> Date: Thu, 30 Mar 2000 17:42:12 -0500 |
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@xxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Jonathan Asbell > Sent: Thursday, March 30, 2000 5:32 PM > To: 'xsl-list@xxxxxxxxxxxxxxxx' > 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@xxxxxxx] > Sent: Thursday, March 30, 2000 1:09 PM > To: 'xsl-list@xxxxxxxxxxxxxxxx' > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Expression to say "case insensi, Jonathan Asbell | Thread | RE: Expression to say "case insensi, Kay Michael |
Re: variable values in for-each loo, David Carlisle | Date | XML+XSL=XML only?, Nadig, Balu S |
Month |