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

TIME-PROG

Subject: TIME-PROG
From: "William Rutford" <vsd18@xxxxxxxxxxxxxx>
Date: 4 Mar 2002 17:01:13 -0000
time prog

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



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.