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

Grouping into a table cell

Subject: Grouping into a table cell
From: "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx>
Date: Mon, 10 May 2004 14:42:51 -0500
timezone value
Hi,
I'm trying to group timezone information into a table. The problem I am
having is the looping through the values of same time zone(ET), same
day(Monday), sorting(start with 12:00AM for AM, and start for 12:00PM
for PM column) and filling them into two columns one of which AM values
only, and second PM values only.
Is it possible to write a grouping function for this request? If yes any
help is appreciated.
Thanks, 
Cihan



Output sample:
------------------------------------------------------------------------
---------------------------------
Monday
<table width="542" border="0" cellspacing="0" cellpadding="0">
     <tr>
         <td width="55" align="right"> AM VALUES</td>
         <td width="55" align="right"> PM VAULES</td>
     </tr>
    <tr>
         <td width="55" align="right"> AM VALUES</td>
         <td width="55" align="right"> PM VAULES</td>
     </tr>\
 and so on....

 </table>

Tuesday
<table width="542" border="0" cellspacing="0" cellpadding="0">
     <tr>
         <td width="55" align="right"> AM VALUES</td>
         <td width="55" align="right"> PM VAULES</td>
     </tr>
    <tr>
         <td width="55" align="right"> AM VALUES</td>
         <td width="55" align="right"> PM VAULES</td>
     </tr>\
 and so on....

 </table>

 
------------------------------------------------------------------------
---------------------------------
    
---------------XML file-------
<main_schedule>
<schedule>
<prog ID="1" title="Asthma">
 <timezone value="ET">
<airing day="Monday">
<time value="1:00am"/>
<time value="9:00am"/>
<time value="5:00pm"/>
</airing>
<airing day="Tuesday"/>
<airing day="Wednesday"/>
</timezone>
<timezone value="CT">
<airing day="Monday">
  <time value="12:00am"/>
     <time value="8:00am"/>
      <time value="4:00pm"/>
</airing>
<airing day="Tuesday"/>
<airing day="Wednesday"/>
 </timezone>
<timezone value="MT">
<airing day="Monday">
     <time value="7:00am"/>
     <time value="3:00pm"/>
</airing>
</timezone>
</prog>
<prog ID="2" title="Cancer">
<description><![CDATA[Cancer is...]]></description>
<timezone value="ET">
<airing day="Monday">
<time value="6:30am"/>
<time value="2:30pm"/>
<time value="10:30pm"/>
</airing>
<airing day="Tuesday">
<time value="6:30am"/>
<time value="2:30pm"/>
<time value="10:30pm"/>
</airing>
<airing day="Wednesday">
<time value="6:30am"/>
<time value="2:30pm"/>
<time value="10:30pm"/>
</airing>
</timezone>
<timezone value="CT">
<airing day="Monday">
<time value="5:30am"/>
<time value="1:30pm"/>
<time value="9:30pm"/>
</airing>
<airing day="Tuesday">
<time value="5:30am"/>
<time value="1:30pm"/>
<time value="9:30pm"/>
</airing>
<airing day="Wedensday">
<time value="5:30am"/>
<time value="1:30pm"/>
<time value="9:30pm"/>
</airing>
   </timezone>
</prog>
</schedule>
</main_schedule>

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.