Subject: Re: [xsl] SORT From: Jeff Kenton <jkenton@xxxxxxxxxxxxx> Date: Tue, 5 Mar 2002 09:17:05 -0500 (EST) |
Kim, It looks like your time id's contain all the information you need, in the proper format for sorting. If you just for-each through your <time> elements and sort on the id's, you'll have what you want. No need for any special date/time functions. --jeff On 5 Mar 2002, Kim Durand wrote: ..I have a problem, The XMl looks like this. ..<programs> .. <time id = 200203040456> .. <timetext>04:56</timetext> .. </time> .. ..<time id = 2002030632> .. <timetext>06:32</timetext> .. </time> .. ..<time id = 200203041156> .. <timetext>11:56</timetext> .. </time> .. ..<time id = 200203040146> .. <timetext>01:46</timetext> .. </time> .. ..<time id = 200203041856> .. <timetext>06:56</timetext> .. </time> .. ..<time id = 200203040256> .. <timetext>02:56</timetext> .. </time> .. ..<time id = 200203021456> .. <timetext>09:56</timetext> .. </time> ..</programs> .. ..My problem is to sort out the times in the increasing order. The ..id in the xml file is arranged in the fashion ..yyyymmddHH(hrs)MM(mnts).I can get the HH from ..substring(./time/@id,9,2). and this is what i want to sort in ..ascending order. ..so that i may show the timetext in chronological order. How do i ..do this. Can someone help?? ..Many Thanks .. .. 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] SORT, cutlass | Thread | [xsl] Editors?, x calibre |
[xsl] Tamino Database Connection, Kakade Mangesh | Date | RE: [xsl] Tamino Database Connecti, Ball, Mike |
Month |