View Single Post
  #2 (permalink)  
Old May 27th, 2007, 04:13 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,481, Level: 59
Points: 18,481, Level: 59 Points: 18,481, Level: 59 Points: 18,481, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,960
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Could you please try and produce a simplified version of the problem that captures the essence of where you are having difficulty? There's so much data here that's essentially irrelevant to the problem, and most of the code you've shown seems to be playing around the edges of it rather than attacking the core. You can add the frills later once you've got the basic structure right.

Showing the output you want to produce is always useful.

A couple of comments on your data: you should really be using ISO representations of dates and times; and your use of synthetic identifiers for each start and end time looks like relational normalization gone mad.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote