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

Re: xslt sort remove duplicates

Subject: Re: xslt sort remove duplicates
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Fri, 18 May 2007 15:41:03 +0200 (CEST)
Re:  xslt sort remove duplicates
Vaduvoiu Tiberiu wrote:

  Hi

> name1- category1 - most recent date *
> name2 - category1 - date
> name3 - category1 - date
> name4 - category1 - date
> name5 - category1 - date

> name6 - category2 -  most recent date *
> name7 - category2 - date
> name8 - category2 - date
> name9 - category2 - date
> nameX - category2 - date

> I need to dsiplay only the one with the star. So I should only
> display:

> name1- category1 - most recent date *
> name6 - category2 -  most recent date *

  You can use grouping to solve that problem.  You group by 'categ'
elements, and for each group you display only the element with the most
recent date...

  Look the archives for xsl:for-each-group if you need some code
samples.

  Regards,

--drkm




















      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

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.