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.
If you have control of the XML generation then don't add the root node if there is no children. Regardless of which way you choose XSL is quite verbose.