Repeat processing

<instance>
   <data xmlns="">
     <a>1</a>
     <i/>
     <x>1</x>
     <x>2</x>
     <x>3</x>
   </data>
</instance>
<bind ref="i" calculate="../a"/>
<setvalue ref="a" ev:event="xforms-ready">123456789</setvalue>
...
<repeat ref="x" indexref="i">
    <output ref="."/>
</repeat>


The problem here is that indexref is readonly.

So when a (and therefore i) is set out of bounds of the repeat, processing  
states that
  * xforms-scroll-last is sent to the repeat,
  * the repeat index is set to the size of the repeat collection
  * therefore indexref is set to the value of the repeat index.

But that last is not allowed, since i is readonly.

Steven

Received on Friday, 18 November 2016 21:15:13 UTC