Subject: Re: case insensitive comparison From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 12 Sep 2000 13:01:44 GMT |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
case insensitive comparison, Eric Taylor | Thread | Re: case insensitive comparison, David Carlisle |
Re: XSLT V 1.1, David Carlisle | Date | Re: case insensitive comparison, David Carlisle |
Month |