t ref=".">
                        <xf:label/>
                    </xf:input>
                </xh:div>
            </xf:repeat>
            <xf:trigger>
                <xf:label>Add apple</xf:label>
                <xf:insert ref="apple[position() lt last()]" at="index('apple2')" position="after" ev:event="DOMActivate"/>
            </xf:trigger>
        </xh:div>
        <xh:div>
            <xh:p>Apples 3:</xh:p>
            <xf:repeat ref="apple[position() gt 1]" id="apple3">
                <xh:div>
