[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: group dates by month then day

Subject: RE: group dates by month then day
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 3 Dec 2005 13:57:11 -0000
group by month
<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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.