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]

Reply via email to