[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Date Range in XSL
02/16/2003 as there are not 16 months in the year I'll assume that this is dates in the rather bizarre month-day-year order. number(concat(substring(date,7),substring(date,1,2),substring(date,4,2)))) gives you (if I got the right indices) numbers like 04/15/2003 --> 20030415 that you can compare with < or sort with xsl:sort etc. Using ISO date format of 2003-04-15 would make processing easier in XSLT2 (and XML schema) which have native support for ISO dates, and make the file far more easily understandable in most parts of the world) David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|