<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(_dot_)bird(_at_)matrixdigitaldata(_dot_)co(_dot_)uk]
Sent: 03 December 2005 13:02
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--