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 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 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(), ' %')"/>
> >     <echo>passrateValue: ${passrateValue}</echo>
> >
> >     Need to do an addition of all passrateValue values in a variable
> >
> > </x:forEach>
> >
> > //Do some further calculation with the total here
> >
> >
> > How can I do this addition in jelly?
> >
> > regards,
> >
> > Wim
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to