Re: [xsl] the match() function

Subject: Re: [xsl] the match() function
From: RahilQ <qamar_rahil@xxxxxxxxxxx>
Date: Thu, 21 Apr 2005 10:05:40 +0100
Hi

Michael Kay wrote:

If you don't understand what a regular expression is then you shouldn't be
using the matches() function at all: I suspect this is the source of your
confusion (and ours). I suspect that you are just trying to compare two
strings to see if they are equal ignoring case. Yes?



Yeah thats right and there is no pattern match Im trying to achieve over here which is why I couldnt understand the need for regular expressions here.

The correct solution for that is to use the compare() function, specifying a
case-blind collation. Unfortunately collation names are processor dependent,
so you may prefer the simpler (but less accurate) approach of testing
lower-case($A) = lower-case($B).



I have achieved my comparison using the compare() function although Im curious to know whether there is a solution using the match() function and what it is.


Thanks
Rahil

Michael Kay
http://www.saxonica.com/

Current Thread