Subject: Re: [xsl] Keys and select distinct - is that the solution ? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 05 Jun 2006 12:30:29 -0400 |
* select one representative node from each group (usually the first in document order) * iterate over this set * with each representative, process the rest of its group
Cheers, Wendell
Christian Rasmussen <christiankrasmussen@xxxxxxxxx> writes:
> These are grouped in elements of ManureTypeCodes and ManureTypeNames
sounds like some projects I've worked on ...
I have nothing really substantial to offer here, except to emphasize that in XSLT2 this becomes extremely simple. so my advice is to very seriously consider using XSLT2.
that is, for various reasons, sometimes not an option. in that case you probably need to understand the so-called muenchian method, since that technique is the only general purpose grouping method I know of in XSLT1. it's certainly not beginner level XSLT, but given a moderate investment in puzzling it out, is not as they say rocket science.
in fact, I learned the method from (indirectly) the man himself:
Building Oracle XML Applications Steve Muench
At $44USD, it's not cheap, but it contains a section on the eponymous method, with nice pictures and a thorough walk through. it still took me several tries before I really felt comfortable with the idea, but if you're going to be doing any serious XSLT1 work, it's something you pretty much need to understand.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Keys and select distinct , Joseph Dane | Thread | [xsl] Creating a new element and re, Chad Chelius |
Re: [xsl] Top 100 rows and sort the, Dimitre Novatchev | Date | Re: [xsl] Keys and select distinct , Joseph Dane |
Month |