This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: case insensitive comparison
- To: xsl-list at mulberrytech dot com
- Subject: Re: case insensitive comparison
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 12 Sep 2000 13:01:44 GMT
- References: <DBF5834E2987D311A4BE0060081D992C2C3EE1@BUR2>
- Reply-To: xsl-list at mulberrytech dot com
> Currently, have this:
> <xsl:when test= ".[@internal = //bookmark/@name]">
as discussed a few days ago on this list, you can't use [] after .
that should be
<xsl:when test= "self::node()[@internal = //bookmark/@name]">
> I'd like to make this case insensitive. Thanks. ekt
If you are writing in English,
<xsl:variable name="u" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:variable name="l" select="'abcdefghijklmnopqrstuvwxyz'"/>
<xsl:when test= "self::node()
[translate(@internal,$u,$l) =
translate(//bookmark/@name,$u,$l)]">
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list