This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tag:select [2016/06/25 16:15] chrisgerken |
tag:select [2016/06/26 15:50] (current) chrisgerken |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| The iterate tag iterates over a collection of nodes. | 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 | | ||
| - | * nodes **select** - **(required)** An XPath expression that resolves to the iterated collection | + | Back to [[tag:index]] |
| - | * string **var** - **(required)** 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. | + | |
| - | * string **delimeter** - **(required)** A string to be written after every node except the last | + | |
| - | == Usage and examples == | + | == Examples == |
| Place a **<taglib>** element within the **<taglibs>** element in the **gramar.config** file in the root of your gramar: | Place a **<taglib>** element within the **<taglibs>** element in the **gramar.config** file in the root of your gramar: | ||
| Line 16: | Line 18: | ||
| <taglib prefix="c" extension="org.gramar.base" /> | <taglib prefix="c" extension="org.gramar.base" /> | ||
| </taglibs> | </taglibs> | ||
| + | |||
| + | | ||