<?xml-stylesheet type="text/xsl" href="/xforms-tests/xsltforms/xsltforms.xsl"?>
<html xmlns:my="http://commerce.example.com/payment" xmlns:txs="http://sourceforge.net/projects/txs" xmlns="http://www.w3.org/1999/xhtml" xmlns:req="http://www.agencexml.com/requests" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <head>
  	<title>b.13.a Move Element</title>
  	<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
  	<xforms:model>
	    <xforms:action ev:event="xforms-ready">
	        <xforms:insert context="playlist[2]" nodeset="track" origin="../playlist[1]/track[2]"/>
	        <xforms:delete nodeset="playlist[1]/track[2]"/>
	  	</xforms:action>
  		<xforms:instance>
  			<library xmlns="">
  				<playlist>
  					<name>Music for Airports</name>
  					<track id="382"/>
  					<track id="461"/>
  					<track id="629"/>
  				</playlist>
  				<playlist>
  					<name>Lullabies</name>
  					<track id="251"/>
  					<track id="331"/>
  				</playlist>
  			</library>
  		</xforms:instance>
  	</xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">
  			b.13.a Move Element
  		</xforms:label>
  	</xforms:group>
  	<xforms:group>
  		<xforms:label>
  			You must see Track ids "251", "331" and "461" : 
  		</xforms:label>
  		<xforms:repeat nodeset="playlist[2]/track">
  			<xforms:output class="hlist" value="concat(./@id , ' ')">
  				<xforms:label>Track id : </xforms:label>
  			</xforms:output>
  		</xforms:repeat>
  	</xforms:group>
  </body>
</html>