C. Studer
-
2005-01-03
- priority: 5 --> 3
I should add ability to transform a whole repetition
(recursively) with only one <transform> statement.
Example:
<template>
...
<transforms>
<transform variable="module.items" rule="xxx"/>
</transform>
</template>
where module.items might be something like:
module['items'][$i] =
array('title'=>'bla','subitems'=>array(...),'id'=>$i);
Currently, this does not work as I just don't know when
I should transform the repetition. Should I transform it
1. when we start iterating through module.items
2. seperately for each item (inside the iteration loop)
3. when we retrieve a scalar value inside the
module.items-branch