xsl-list
[Top] [All Lists]

Re: grouping by the first char

2005-04-15 16:51:23
I've seen the Muenchian grouping, but I don't know if that exactly
applies to this. Its just a simple one-pass to produce the doc.

 Yes, it applies.

See for example:

     http://www.topxml.com/code/default.asp?p=3&id=v20010129150851


Cheers,
Dimitre Novatchev



On 4/16/05, stuart arnold <stuart(_dot_)arnold(_at_)comcast(_dot_)net> wrote:

This is very fundamental but i'm not having much luck in finding out the
answer.
I need to be able to sort, then group based on the 1st character of the
element.
example:
<things>
<thing>bbb<thing>
<thing>aaa<thing>
<thing>abc<thing>
<thing>aab<thing>
<thing>bad<thing>
<thing>baa<thing>
<thing>cca<thing>
<thing>zzz<thing>
</things>
and produce some html so that a <br> occurs when the 1st char changes.
It should "start" with the default being "a" for grouping, and then
detect that the 1st char change and insert the <br>
I've seen the Muenchian grouping, but I don't know if that exactly
applies to this. Its just a simple one-pass to produce the doc.
thanks
-stuart

--~------------------------------------------------------------------
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>
--~--



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