Open GoogleCodeExporter opened 8 years ago
Hello everybody!
I think I got the problem! The index('[node]') function isn't working as it
should
work. It returns the number of instances that exists. The function is made to
count
the current repeat-number. This way it's not working.
Ready for an example?
- hope you are, here it comes!
Here is a given note:
<product id="1">
<name/>
</product>
<product id="2">
<name/>
</product>
<product id="3">
<name/>
</product>
if you start repeating it, you can catch the error:
<repeat noteset="product" id="productlist">
<output ref="//product" value="@id"/> // RIGHT output (1, 2, 3)
<output ref="//product" value="index('productlist')"/> // WRONG output (always 3
(3 entries))
</repeat>
We need to fix this. Does someone know, where the code for the function is?
Original comment by F.Schroe...@gmail.com
on 11 Sep 2009 at 8:33
Original issue reported on code.google.com by
F.Schroe...@gmail.com
on 8 Sep 2009 at 12:36