![]() |
|||
|
|||
Attribute |
index, a string, defaults to 'index' |
||
[optional] the name assigned to the counter variable. |
|||
Attribute |
element, a pointer(s) |
||
[required] the name of the element to be processed. |
|||
Description |
Every element which falls within the scope of the 'element' parameter is passed, in turn, to the contents of the <_foreach /> tag. As the contents of the <_foreach /> tag are then processed. References to data are made relative to the element currently being processed, with the exception of the data root. An element which is passed to a <_foreach /> tag is treated as a data side element, even if the element itself is defined as a template side element.As in a <_for /> loop, <_break /> can be used to finish the loop at the end of the current iteration. |
||
Examples of use |
|
||
XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited© Copyright 1998-2000 DecisionSoft Limited |