All programming languages have a for/next or do/while or while/wend or etc.. loops that allow them to do the same thing, incrementing a variable.
I've been looking through XSL reference and haven't been able to find a way do doing this, yet.
What I am trying to do is take XML:
<item>
<min>5</min>
<max>50</max>
<increment>5</increment>
</item>
And have it create 10 <option value="current_increment">current_increment</option>. For example:
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
..etc..
<option value="45">45</option>
<option value="50">50</option>
Any help as to how to do this in XSL, without doing using XML like:
<item>
<min>5</min>
<max>50</max>
<increment>5</increment>
<steps>
<step>5</step>
<step>10</step>
<step>15</step>
<step>20</step>
<step>25</step>
<step>30</step>
<step>35</step>
<step>40</step>
<step>45</step>
<step>50</step>
</steps>
</item>
Thanks.
I've been looking through XSL reference and haven't been able to find a way do doing this, yet.
What I am trying to do is take XML:
<item>
<min>5</min>
<max>50</max>
<increment>5</increment>
</item>
And have it create 10 <option value="current_increment">current_increment</option>. For example:
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
..etc..
<option value="45">45</option>
<option value="50">50</option>
Any help as to how to do this in XSL, without doing using XML like:
<item>
<min>5</min>
<max>50</max>
<increment>5</increment>
<steps>
<step>5</step>
<step>10</step>
<step>15</step>
<step>20</step>
<step>25</step>
<step>30</step>
<step>35</step>
<step>40</step>
<step>45</step>
<step>50</step>
</steps>
</item>
Thanks.