http://www.topxml.com/code/default.asp?p=3&id=v20020103052420
or look in FXSL for
combinatorics.xsl
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
On 6/27/07, Matthieu Ricaud <matthieu(_dot_)ricaud(_at_)ajlsm(_dot_)com> wrote:
Hello,
I'm searching for hours for a solution to my problem, but didn't find a
solution ...
It's about a spellchecker. When searching for an experssion with say N words,
I want to list every combinations of suggested words.
I get the list of suggested words in an xml file, if the word exists (is well
spelled) than I don't get any suggestions for it, if not I get as many
suggestions as there are in the "spell base" .
The xml file could look like that for example :
<?xml version="1.0" encoding="UTF-8"?>
<spellchecker date="Wed Jun 27 17:13:12 CEST 2007">
<word valeur="a" exist="false">
<suggest value="a1"/>
<suggest value="a2"/>
<suggest value="a3"/>
<suggest value="a4"/>
<suggest value="a5"/>
</word>
<word value="b" exist="true"></word>
<word value="c" exist="false">
<suggest value="c1"/>
<suggest value="c2"/>
<suggest value="c3"/>
<suggest value="c4"/>
<suggest value="c5"/>
</word>
<word value="d" exist="false">
<suggest value="d1"/>
<suggest value="d2"/>
<suggest value="d3"/>
</word>
</spellchecker>
So what I like for result is :
a1 *b* c1 d1
a1 *b* c1 d2
a1 *b* c1 d3
a1 *b* c2 d1
a1 *b* c2 d2
a1 *b* c2 d3
a1 *b* c3 d1
a1 *b* c3 d2
a1 *b* c3 d3
a2 *b* c1 d1
a2 *b* c1 d2
a2 *b* c1 d3
a2 *b* c2 d1
a2 *b* c2 d2
a2 *b* c2 d3
a2 *b* c3 d1
a2 *b* c3 d2
a2 *b* c3 d3
Any idea of an xslt able to do that or any suggestions would be really
welcome !
Matthieu
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--