Subject:Counter without a script ?? Author:Giuseppe Cardon Date:23 May 2005 07:21 AM
I have problem. I need to use a counter without using a script. I have a "for each" cycle and, at each iteration, I can pick a variable "id" but this "id" it's random (3,7,13). But I need a sequencial number because I have to set a dimension variable (e.g. height=300*counter). How can I do without a script ??
Subject:Counter without a script ?? Author:Minollo I. Date:23 May 2005 10:54 AM
Two simple ways are:
- Rely on the position() function to understand which Nth element in the for-each loop you are processing
- Create a recursive template feeding a counter to each recursive call as a parameter
Subject:Counter without a script ?? Author:Giuseppe Cardon Date:23 May 2005 10:54 AM
I resolved myself the problem simply using the position() function. I have another problem now. But I will do a new topic. Sorry for the question. Giuseppe