[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: grouping by the first char

Subject: RE: grouping by the first char
From: cknell@xxxxxxxxxx
Date: Fri, 15 Apr 2005 16:56:07 -0400
RE:  grouping by the first char
It does apply.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     stuart arnold <stuart.arnold@xxxxxxxxxxx>
Sent:     Fri, 15 Apr 2005 16:53:50 -0400
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:   grouping by the first char


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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.