<?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.15.a Insert Element into Non-Contiguous, Heterogeneous Nodeset</title>
  	<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
  	<xforms:model>
	  	<xforms:action ev:event="xforms-ready">
	  		<xforms:insert nodeset="chapter/*" origin="instance('prototypes')/paragraph" at="7" position="before"/>
	  	</xforms:action>
  		<xforms:instance>
  			<document xmlns="">
  				<chapter>
  					<header>Lorem ipsum</header>
  					<paragraph>Lorem ipsum verterem voluptaria</paragraph>
  					<diagram>Exemplum 1</diagram>
  					<diagram>Exemplum 2</diagram>
 					<paragraph>Primis abhorreant delicatissimi</paragraph>
  				</chapter>
  				<chapter>
  					<header>Lorem ipsum</header>
  					<diagram>Exemplum 3</diagram>
  				</chapter>
  			</document>
  		</xforms:instance>
  		<xforms:instance id="prototypes">
  			<prototypes xmlns="">
  				<chapter/>
  				<header/>
  				<paragraph/>
  				<diagram/>
  			</prototypes>
  		</xforms:instance>
  	</xforms:model>  	
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">
  			b.15.a Insert Element into Non-Contiguous, Heterogeneous Nodeset
  		</xforms:label>
  	</xforms:group>
  	<xforms:group>
  		<xforms:label>
  			You must see an empty paragraph : 
  		</xforms:label>
  		<xforms:repeat nodeset="chapter[2]/paragraph">
  			<xforms:output class="hlist" value="concat(. , ' ')">
  				<xforms:label>Paragraph: </xforms:label>
  			</xforms:output>
  		</xforms:repeat>
  	</xforms:group>
  </body>
</html>
