Re: How do I add 2 numbers in jelly?

2005-06-16 Thread Wim Deblauwe
It works now. The problem was that one of my variables was a string, not a number. Using the XPath function 'number()' solved this. 2005/6/15, Wim Deblauwe [EMAIL PROTECTED]: I'll check out the resource tomorrow for more info. I already tried the statement you say, but it did not seem to work.

How do I add 2 numbers in jelly?

2005-06-15 Thread Wim Deblauwe
Hi, I can't find a good jelly resource anywhere on the net, so I hope this list might help me out. Consider this jelly fragment: x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set var=passrateValue select=substring-before(text(), ' %')/

Re: How do I add 2 numbers in jelly?

2005-06-15 Thread Kenney Westerhof
On Wed, 15 Jun 2005, Wim Deblauwe wrote: See http://jakarta.apache.org/commons/jexl/reference/syntax.html, jexl is Java Expression Language, the default scripting language used in jelly. You can use j:set var=sum value=${ sum + passRateValue }/ or something. Hi, I can't find a good jelly

Re: How do I add 2 numbers in jelly?

2005-06-15 Thread Wim Deblauwe
I'll check out the resource tomorrow for more info. I already tried the statement you say, but it did not seem to work. 2005/6/15, Kenney Westerhof [EMAIL PROTECTED]: On Wed, 15 Jun 2005, Wim Deblauwe wrote: See http://jakarta.apache.org/commons/jexl/reference/syntax.html, jexl is Java