Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] group dates by month then day [Thread Next] RE: [xsl] group dates by month then dayTo: Date: 12/3/2005 2:18:00 PM <xsl:for-each-group group-by="month-from-dateTime(...)">
<then>
<xsl:for-each-group group-by="day-from-dateTime(...)">
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Kevin Bird [mailto:kevin.bird@xxxxxxxxxxxxxxxxxxxxxxx]
> Sent: 03 December 2005 13:02
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] group dates by month then day
>
> Hi
>
> I have a node-set which needs to be grouped on a date
> element. The date
> element is in the XSLT2 friendly format: YYYY-MM-DDThh:mm:ss.s. I need
> to group by month and then day within month. Is there a way to achieve
> this in 2 without treating the dates as strings and chopping then up
> with substring-before, substring-after? (I'm not against
> substring-before, substring-after, it just feels like a
> backwards step!)
>
> Many thanks.
>
> --
> Kevin | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
