xsl-list
[Top] [All Lists]

[xsl] Re: Fuzzy analyze-string

2007-09-19 03:07:17
Dear,

Ok thinking trough it a bit more shows me it's obvious answer would be
to provide a different collation algorithm

Say now the problem has to be solved in XSLT 2.0 without creating a
non XSLT collation function

Is it possible to make it possible with an 100% XSLT 2.0 solution ?

Xmlizer

On 9/15/07, mozer <xmlizer(_at_)gmail(_dot_)com> wrote:
Dear XSLers,

What I want to achieve is a fuzzy analyze string in XSLT 1.0

That is

Say I have a process

String normalize(String)

that takes a string and normalize it

Then I have a bigger string in a div element

<div>this is the string that I want tO analyze but with some
variations without having troubles because multiple variation of typo
of the same word could apply for exampe to TO tO or To</div>

The problem is that I will have as input a variable string

I will normalize it

And have the string matching the previous string with normalize

For example

with 'TO' given as input and say that normalize('TO') gives 'to'

I want this result

<div>this is the string that I want <span>tO</span> analyze but with
some variations without having troubles because multiple variation of
typo of the same word could apply for exampe </span>to</span>
<span>TO</span> <span>tO</span> or <span>To</span></div>


Thanks in advance for the time taken

Cheers,

Xmlizer


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>