How-to break a for-each loop in XSLT?
I had a similar situation and here is the code I had written. For logical reasons, I couldn't fit in the other conditions with condition01.
--body of for loop