xsl-list
[Top] [All Lists]

Re: Problem with Muenchian grouping

2003-11-10 09:10:34
Jean,

At 07:09 AM 11/10/2003, you wrote:
So, instead of getting the first member of the group, I would like to get the
one with the greatest number of children (to get all the headers, it's not a
problem if some fields are blank in the table). Is this possible?

(This being in the context of grouping.)

Hm, interesting, and tricky. Since you would have to count the number of children on the fly, I don't think this could be done in one pass. If you used two passes, you could sort the elements by their number of children, or flag them for later comparison (of static values), in the first pass, and de-duplicate them in the second.

Or I bet you could use FXSL.... (Dimitre?) Strictly speaking that's not one pass either, but that's why it's so powerful.

Which of these ways you want to do it depends largely on non-technical factors, I'd say....

Cheers,
Wendell


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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