I have a rather complicated xslt sheet transforming one xml format to another using templates. However, in the resulting xml, I need to have all the empty elements excluded.
I started with Dimitre's solution above (thanks!) but I still had output or null elements with null children like so:
This seems to work... still testing.