break()
Exit from the enclosing for-each loop.
for-each
Example:
for-each $elementList/* { ... if @xml:id = "i2" { break(); } }