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

Re: A challenge.. Group Periods of Data (1..5, 2..8,

Subject: Re: A challenge.. Group Periods of Data (1..5, 2..8, 4..9) (10..12; 10..14)
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Tue, 3 May 2005 14:59:56 -0700
xsl no such element
> I wondered what you meant by that - I still do. You mean you want the
> stylesheet to detect a time at which no sessions are alive, and use that as
> a boundary between periods? What if there is no such time?

Let me try this approach, and assuming the XML source is sorted accordingly..

>You mean you want the
> stylesheet to detect a time at which no sessions are alive, and use that as
> a boundary between periods? What if there is no such time?

First element of period:  first element or first element where
period_begin does not fall within previous sibling period_begin and
period_end.

Last element of period:  last element match where period_begin falls
within previous sibling period_begin and period_end.

> What if there are several?

It shouldn't matter.


On 5/3/05, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > The challend did state that the periods listed were arbitrary
> > (unkown).  Any way to drive your solution without parameters or
> > pre-existing variables defining these periods?
>
> I wondered what you meant by that - I still do. You mean you want the
> stylesheet to detect a time at which no sessions are alive, and use that as
> a boundary between periods? What if there is no such time? What if there
are
> several? You need to specify the problem more precisely.
>
> Michael Kay
> http://www.saxonica.com/

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.