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

RE: Another days of the week sort

Subject: RE: Another days of the week sort
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 21 Jan 2004 04:20:30 -0000
sql days of week
xsl:sort select="string-length(substring-before(
'MON1TUE1WED1...THU2FRI2SAT2..,', dayCode))"

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> allan.mccluskey@xxxxxxxxxxxxxxxxx
> Sent: 21 January 2004 00:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Another days of the week sort
> 
> 
> G'day all,
> 
> I need to sort my output by days of the week. i.e. I have a 
> element called 'dayCode' which can contain one of the 
> following values: MON1, MON2, TUE1, TUE2, WED1, WED2, THU1, 
> THU2, FRI1, FRI2 etc etc
> 
> I need the output to look like this:
> Mon1, Tue1, Wed1, Thu1, Fri1, Sat1, Sun1, Mon2, Tue2, Wed2, 
> Thu2, Fri2, Sat2, Sun2.
> 
> Is there a way to do this kind or sort??
> 
> Many thanks
> Allan
> 
> 
> 
> 
> 
> 
> 
> Important:  This e-mail is intended for the use of the 
> addressee and may contain information that is confidential, 
> commercially valuable or subject to legal or parliamentary 
> privilege.  If you are not the intended recipient you are 
> notified that any review, re-transmission, disclosure, use or 
> dissemination of this communication is strictly prohibited by 
> several Commonwealth Acts of Parliament.  If you have 
> received this communication in error please notify the sender 
> immediately and delete all copies of this transmission 
> together with any attachments.
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


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.