Imagine you have the following source data with a parent-children relationship between a Box and its Cakes.
<Box id = 1>
<Cakes>
<Cake id =1>
<some other tags ...>
</Cake>
<Cake id =2>
<some other tags ...>
</Cake>
</Cakes>
</Box>
<Box id = 2>
<Cakes/>
</Box>
The goal is to properly remove the boxes that contain no cakes (such as box 2) in the destination, while keeping the ability to map the Cake elements and their children tags properly in the graphical mapper (so without using a raw XSLT expression that would prevent that).
Is there a nice way to do this using functoids? Or something else?