RE: [xsl] date grouping/sorting problem

Subject: RE: [xsl] date grouping/sorting problem
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 2 Mar 2004 08:42:56 +0200
Hi,

> I am trying to group and sort some xml by dates,
> especially by year, month and then day. It appears
> that I need to use keys and a sorting method to do
> this, but I am having trouble grokking it. Can someone
> lend some help?
> 
> Here is a sample xml file that I am trying to group
> and sort. I appreciate any help that can be given!

If sorting is the only thing you're after, you don't need keys, just

  <xsl:sort select="translate(substring-before(xcal:dtstart, ' '), '-', '')"/>

If you're after something more complex, you need to give more details.

Cheers,

Jarno - Chris C: The Zurich Mix

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


Current Thread