inserting into an empty list

What does this output? (Answer supplied in a following mail: but it caught  
me out!).

       <model>
  <instance>
     <data xmlns="">
        <list/>
     </data>
  </instance>
  <instance id="s">
     <data xmlns="">
        <v>1</v>
        <v>2</v>
        <v>3</v>
        <v>4</v>
        <v>5</v>
     </data>
  </instance>
  <action ev:event="xforms-ready">
     <insert ref="list/v" origin="instance('s')/v[1]"/>
     <insert ref="list/v" origin="instance('s')/v[2]"/>
     <insert ref="list/v" origin="instance('s')/v[3]"/>
     <insert ref="list/v" origin="instance('s')/v[4]"/>
     <insert ref="list/v" origin="instance('s')/v[5]"/>
     <insert context="list" ref="v" origin="instance('s')/v[1]"/>
     <insert context="list" ref="v" origin="instance('s')/v[2]"/>
     <insert context="list" ref="v" origin="instance('s')/v[3]"/>
     <insert context="list" ref="v" origin="instance('s')/v[4]"/>
     <insert context="list" ref="v" origin="instance('s')/v[5]"/>
  </action>
       </model>
       <group>
  <repeat ref="v"     ><output value="."/></repeat>
  <repeat ref="list/v"><output value="."/></repeat>
       </group>

Steven

Received on Wednesday, 3 April 2019 12:24:59 UTC