[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: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Wed, 04 May 2005 20:53:21 +0000
Re:  A challenge.. Group Periods of Data (1..5
As they say, those who can, do, and those who can't, teach. Thus perhaps I could annotate the solution below:


From: Karl Stubsjoen <kstubs@xxxxxxxxx>

1)  Variable e2 select.
select="@period_end[. &gt; $e]|$e[. &gt;= current()/@period_end]"

How does the pipe work here and is this only evaluating the current B
element, or evaluating all @period_end(s)?

$e is a passed-in param; so this expression selects either current <B>/@period_end if greater than $e, or simply the passed-in $e if it's equal-or-greater than the current <B>/@period_end. Remember that the pipe, "|", indicates "union", not "or" as in many programming languages.



2)  Right off the bat (first iteration), I don't understand how you
determine the period attribute "ends" value.

It assumes the period ends with the @period_end of the first <B>, until proven wrong further downstream.


3)  Variable g select, what does this get you, the ancestor record?
select="/.."

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.