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

Grouping by shift problem

Subject: Grouping by shift problem
From: "Kent Seegmiller" <hookjaw20@xxxxxxxxxxx>
Date: Fri, 9 Sep 2005 00:05:04 -0600
shift problem
I have a shift doc (shifts.xml):

<shifts>
   <shift1 start='00:00:00' end='08:00:00'/>
   <shift2 start='08:00:00' end='16:00:00'/>
   <shift3 start='16:00:00' end='00:00:00'/>
</shifts>

That I want as a lookup table

Now I have anoher doc (departures.xml) with depart times and such:

<departs>
   <door>
   <time>2005-06-12T15:02:06</time>
   <name>Joe Somebody</name>
   <dock>032</dock>
   </door>
   <door>
   <time>2005-06-13T17:03:56</time>
   <name>Joe Somebodyelse</name>
   <dock>055</dock>
   </door>
   ...
</departs>

How do I group the <time> elements by shift?

like thus,
<alldeparts>
<shift2>
   <depart>
   <name>Joe Somebody</name>
   <time>2005-06-13T17:03:56</time>
   <dock>055</dock>
   </depart>
...
</shift2>
<shift3>
   <depart>
   <time>2005-06-13T17:03:56</time>
   <name>Joe Somebodyelse</name>
   <dock>055</dock>
   </depart>
...
</shift3>
...
</alldeparts>
etc.

Thanks in advance, Kent

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.