xsl-list
[Top] [All Lists]

Re: [xsl] xslt sort remove duplicates

2007-05-18 07:34:57
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 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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