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

Re: Unions and/or temporally related groups

Subject: Re: Unions and/or temporally related groups
From: tcn@xxxxxxxxxxxxx (Trevor Nash)
Date: Mon, 16 Jul 2001 15:23:46 GMT
Re:  Unions and/or temporally related groups
On Mon, 16 Jul 2001 09:52:26 -0400, Tony Click wrote:

>Thanks for the comments and suggestions on how to solve my union problem.
>I've found a solution, albeit an ugly one.
>
>To quickly revisit, the problem was how to detect in a time ordered set of
>elements whether the subsequent element had nodes that had similar values
>(excluding the acutally data value)
>
>
>
><xsl:variable name="nextTimeInterval"
>select="following-sibling::timeInterval[1]"/>
>
>count ($nextTimeInterval[@channelId =
>$currentTimeInterval/@channelId][@parameterSetId =
>$currentTimeInterval/@parameterSetId ]) != count ($currentTimeInterval)
>
>
Wont this miss
     channel = '1' parameterSetId='1'
followed by
     channel = '1' parameterSetId='1'
     channel = '2' parameterSetId='2'
?
I think you need to check count($nextTimeInterval)
 !=count ($currentTimeInterval)
as well.

And it would be as well to test

     channel = '1' parameterSetId='1'
     channel = '2' parameterSetId='2'
followed by
     channel = '1' parameterSetId='2'
     channel = '2' parameterSetId='1'

and similar evil combinations.


Regards,
Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.