[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: Fri, 6 May 2005 11:06:22 -0700
how periods begins
David, I found a bug.

For two contiguous elements who's period_end date match and are the
end of a period you will get the output of the current period being
processed and the additional who's period_end date is a duplicate.

(period_end='16' is an example of this)

Given:

<A>
  <B period_begin="1" period_end="5"/>
  <B period_begin="2" period_end="7"/>
  <B period_begin="3" period_end="10"/>
  <B period_begin="4" period_end="12"/>
  <B period_begin="14" period_end="16"/>
  <B period_begin="15" period_end="16"/>
  <B period_begin="52" period_end="62"/>
</A>

You get:

<result>
  <period begins="1" ends="12" />
  <period begins="14" ends="16" />
  <period begins="15" ends="16" />
  <period begins="52" ends="62" />
  <period begins="63" ends="150" />
</result>

Expected Result is:
<result>
  <period begins="1" ends="12" />
  <period begins="14" ends="16" />
  <period begins="52" ends="62" />
  <period begins="63" ends="150" />
</result>

Any ideas?

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.