[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: group dates by month then day
<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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|