Predictable and consistent handling of empty collections in ForEach tags
Have Windward's ForEAch tag behave consistently towards empty collections.
In XSLT as in any programming language where a "foreach" like operator exists, when the collection to loop over is empty, the loop iterates 0 times.
Take for instance this XSLT:
https://xsltfiddle.liberty-development.net/gWmsLAH
Change the XML to contain no Book elements. It will iterate 0 times.
Windward behaves differently. Sometimes. Sometimes it iterates 0 times as expected. Sometimes it raises an exception, making Windward unpredictable and unreliable.
See https://support.apryse.com/support/tickets/50936
My improvment idea: make Windward predictable en reliable by having it implement the expected behaviour in all cases: iterate 0 times over empty collections without raising errors.
![](https://secure.gravatar.com/avatar/1da9dd9873a98914a96dcd3ad7909d46?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)