LFC-$31.lzx

<canvas height="140">
   <dataset name="somedata">
     <one/> <two/> <three/> <four/> <five/>
 
   </dataset>
   <simplelayout/>
   <button onclick="moveClone()">
     Move clone 
     <method name="moveClone">
       var nextClone = replView.getCloneNumber(this.cnum++);
       if (nextClone == null) {
         this.cnum = 0;
         var nextClone = replView.getCloneNumber(this.cnum++);
       }
       nextClone.setAttribute('x', nextClone.x + 10);
     </method>
     <attribute name="cnum" value="0"/>
 
   </button>
   <view name="replView" datapath="somedata:/*">
     <text datapath="name()"/>
   </view>
 </canvas>

Cross References

Named Instances