[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Calculating cumulative values - another call for h
Andrew Welch wrote:
On 8/30/07, Simon Shutter <simon@xxxxxxxxxxx> wrote: Just in case it is still of interest: in my solution, I walk the tree keeping a (kind of) hash any @x that is passed by. Meaning, it will work with any @x, and it does not matter whether these @x are numbers, strings, empty, in order or no order. It just counts the matching @x together. When there are very many @x, you may want to optimize the distinct-values([original-list], [new-x]), because that may yield some extra performance penalty when it rolls into the 10000s different @x's. In retrospective, do note that my solution will obviously be much harder to maintain than the concise version using sum(...) from Andrew. Though you can hide the complexity by putting a lot into custom user defined special home grown own breed xslt functions. Cheers, -- Abel Braaksma
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|