1. break

break()

Exit from the enclosing for-each loop.

Example:

for-each $elementList/* {
    ...
    if @xml:id = "i2" {
        break();
    }
}