res:binding[@name='uri']/res:uri)"/>
						<xforms:var name="label" select="data(res:binding[@name='label']/res:literal)"/>
						<xforms:insert context="instance('source-list')" nodeset="./child::node()[last()]"
							origin="xforms:element('item', (xforms:attribute('uri', $uri), $label))"/>
					</xforms:action>
				</xforms:action>
			</xforms:action>

			<xforms:toggle case="edit-record" if="instance('control-instance')/new_id=false()" ev:event="xforms-ready"/>
		</xforms:model>
	</head>

	<body>
		<xf