[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] =?windows-1256?Q?Does_'Lec=9Cur'_occur_in_$text=3F_Do_you_have_a_multi-fa?= =?windows-1256?Q?ctor_XPath_solution=3F?=

Subject: [xsl] Does 'Lecœur' occur in $text? Do you have a multi-factor XPath solution?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Fri, 18 Jan 2013 22:12:18 +0000

Hi Folks,

I want to determine if 'Lecur' occurs in $text.

A naove solution is this XPath expression:

      contains($text, 'Lecur')

However, that does not take into account many important factors:

1. Perhaps 'Lecur' occurs, but in $text it is in uppercase

2. Perhaps instead of the '' ligature, $text uses 'oe'

3. Perhaps in $text 'Lecur' is split over two lines and thus is hyphenated

4. Perhaps 'Lecur' is slightly misspelled in $text and therefore requires
fuzzy matching

And there are many other important factors.

Do you have an XPath solution to this problem that takes into account the many
important factors?


Current Thread