|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I am trying to loop through the instances of a node in an XML document, creating a checkbox for each instance. The name of the checkbox has to be a number, starting at 1 and increasing by one each time. I think this is done using a param but getting the value to increase by one each instance is proving to be a problem. Thanks for the help, Matt |
|
#2
|
||||
|
||||
|
In your loop, the node set function position() will return the number to increase your parameter base number by.
< ... name="chk{$paramValue + position()}" ... > |
|
#3
|
|||
|
|||
|
Thanks Matt,
That'll do the trick nicely. Matt |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XSL Looping - equiv of i+1 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|