- Ursprüngliche Nachricht ---
Von: Jan Hinzmann <[EMAIL PROTECTED]>
An: users@cocoon.apache.org
Betreff: Re: JXTemplate - Incrementing value of variable in a loop
Datum: Tue, 12 Jul 2005 16:39:16 +0200
On Tuesday 12 July 2005 16:05, Johannes Becker wrote:
Thanks!
The xpath function sum()
distribution)?
Thanks
Jonny
> --- Ursprüngliche Nachricht ---
> Von: Jan Hinzmann <[EMAIL PROTECTED]>
> An: users@cocoon.apache.org
> Betreff: Re: JXTemplate - Incrementing value of variable in a loop
> Datum: Tue, 12 Jul 2005 16:39:16 +0200
>
> On Tuesday 12 July 2005
nts you from having logic in your Templates.
> Thanks
> Jonny
>
>
>
>
> > --- Ursprüngliche Nachricht ---
> > Von: "Chris Marasti-Georg" <[EMAIL PROTECTED]>
> > An:
> > Betreff: RE: JXTemplate - Incrementing value of variable in a loop
> > Datum: Tue, 12 Jul
TECTED]>
> An:
> Betreff: RE: JXTemplate - Incrementing value of variable in a loop
> Datum: Tue, 12 Jul 2005 09:47:02 -0400
>
> There is an xpath function sum(), try using #{sum(item/quantity)} (not
> sure of exact syntax)
> ex.
>
> Chris Marasti-Georg
>
>
> >
Re: JXTemplate - Incrementing value of variable in a loop
>
> Johannes Becker wrote:
> > Hi,
> >
> > I want to increment the value of a variable in a
> -loop. In
> > my case, I want to increment the variable "total" with the
> > "quantity"-e
Johannes Becker wrote:
Hi,
I want to increment the value of a variable in a -loop. In my
case, I want to increment the variable "total" with the "quantity"-element
(from item).
??? #{total} += #{quantity} ???
Is there a way to do this? Or a workaround?
See http://
Hi,
I want to increment the value of a variable in a -loop. In my
case, I want to increment the variable "total" with the "quantity"-element
(from item).
??? #{total} += #{quantity} ???
Is there a way to do this? Or a workaround?
Thanks
Jonny
--
5 GB Mailbox, 50 Fr