cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Schatten <>
Subject Re: xsl:for-each increase integer variable value ???
Date Fri, 26 Mar 2004 16:37:52 GMT
Tuan Luu wrote:

>I would like to use <xsl:for-each>, and for every run the variable should
>increase by let's say the value 10. 
>How can I do that?

this is definitly no Cocoon question, it is an XSL (beginner) question.

XSL is no procedural language, hence the concept of variables is 
completely different there. please read one of the basic XSL tutorials 
or buy an adequate book.

it is possible to "simulate" a loop like this, but not with for-each, 
but with recursion.

the basic idea is:

loop (0)

loop (param x)
  if y<100
     loop (y)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message