cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Pöhler <>
Subject Re: XSL variable scope question
Date Tue, 15 Aug 2000 15:23:33 GMT

thanks to Robin Green for the great anwser. 

> or (3) It's a shame that there is a sum() function in XSLT, 
> but no max() 
> function. Is there any way you could use MAX() in SQL - are 
> you getting your 
> data from a database?

I generate the input from xsp and my workaround until i read the answer was
to make a second database query in the xsp. I now will try the recursiv
solution, i think it is more beatiful. 

> or (2) Use recursion instead of xsl:for-each. Make a template 
> which calls 
> itself if there are any more adjacent rows below this row, 
> with the new 
> value of max as a parameter, or if there aren't, outputs the 
> value of max. 
> If you aren't sure how to do this just ask.

Okay ;-)


View raw message