Subject: RE: [xsl] grouping by unique... From: "Lars Huttar" <lars_huttar@xxxxxxx> Date: Tue, 17 Jun 2003 21:43:49 -0500 |
> Fei Zheng wrote: > > > I'd like to have an unique solution list. Anyone can tell what's > > wrong with the following code which gives all solutions instead of > > the unique solutions? > > select="item[not(metadata/solution = > preceding-sibling::metadata/solution)]/metadata/solution" /> > > You are using the preceding-sibling on the wrong element. > Try > select="item/metadata/solution[not(. = > preceding-sibling::solution)]"/> > > J.Pietschmann But this will not give the right results because it only checks for *siblings* that are the same, whereas Fei Zheng wants to eliminate duplicates that are second cousins too. How about select="item/metadata/solution[not(. = preceding::solution)]" Or go Muenchian. (Btw how do you pronounce that?) Lars XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] grouping by unique..., J.Pietschmann | Thread | Re: [xsl] grouping by unique..., Jeni Tennison |
Re: [xsl] coping with huge xml-saxo, Paul Tremblay | Date | RE: [xsl] How to find all parents h, Lars Huttar |
Month |