The iterate tag iterates over a collection of nodes.
| Attribute | Kind | Required? | Purpose |
|---|---|---|---|
| select | nodes | yes | An XPath expression that resolves to the iterated collection |
| var | string | yes | The name of a context variable to be associated with the current node of the iteration. The variable is scoped to the body of the tag. |
| delimiter | string | yes | A string to be written after every node except the last |
Back to index
Place a <taglib> element within the <taglibs> element in the gramar.config file in the root of your gramar:
<taglibs>
<taglib prefix="c" extension="org.gramar.base" />
</taglibs>