                        <xf:label/>
                    </xf:input>
                </xh:div>
            </xf:repeat>
            <xf:trigger>
                <xf:label>Add apple</xf:label>
                <xf:insert ref="apple" at="index('apple1')" position="after" ev:event="DOMActivate"/>
            </xf:trigger>
        </xh:div>
        <xh:div>
            <xh:p>Apples 2:</xh:p>
            <xf:repeat ref="apple[position() lt last()]" id="apple2">
                <xh:div>
                    <xf:inpu