Subject: Re: [xsl] Does 'Lec?ur' occur in $text? Do you have a multi-fa ctor XPath solution?|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jan 2013 17:17:10 -0500
I want to determine if 'Lecur' occurs in $text.
A naove solution is this XPath expression:
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?
A nested combination of the above function calls. Left as an exercise for the reader.
-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal