Whereas a "for" expression in Java is a loop in which the items must be processed sequentially, a for-each instruction in XSLT is a mapping expression in which the items in the input can be processed in any order or in parallel. It's not a loop, so it doesnt' make sense to break out of it. If you need to process items until some condition is true, use a recursive template or function.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|