hi i have a problem
I have an xml file which looks like below
<programs>
 <prog id = 1>
  <time>03.00</time>
  <ampm>am</ampm>
  <title>morning prog1</title>
 </prog>
 <prog id = 2>
<time>06.00</time>
  <ampm>pm</ampm>
  <title>evening prog2</title>
 </prog>
 <prog id = 3>
<time>10.00</time>
  <ampm>pm</ampm>
  <title>evening prog3</title>
 </prog>
 <prog id = 4>
<time>12.30</time>
  <ampm>pm</ampm>
  <title>evening prog4</title>
 </prog>
 <prog id = 5>
<time>07.00</time>
  <ampm>am</ampm>
  <title>morning prog5</title>
 </prog>
 <prog id = 6>
<time>05.30</time>
  <ampm>pm</ampm>
  <title>evening prog6</title>
 </prog>
</programs>
I want the out put to be classified according to the logic that 
programs shown  between 6:00 am and 3:00pm are to be shown on the 
first half of the HTML page  and the program shown after 3:00 pm 
to morning 6:00 am should be shown on the second half of the 
page..
example : this should be the output
03:00 am - morning prog1
07:00 am - morning prog5
<hr></hr>
5:30 pm evening prog6
6:00 pm evening prog2
10:00 pm evening prog3
12:30 pm evening prog4
Also note that the output programs are in the increasing order of 
the time..
Can someone help me regarding how i can solve this problem????
Many Thanks
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list