How to eliminate all empty node from the xml source file?
This xsl has 2 named templates t1 and t2. Template t1 will eliminate all “absolutely empty nodes”, which means no child nodes and no attributes. Template t2 will eliminate all eliminate all “empty nodes”, no matter it has attribute or not. Just change xsl:call-template name attribute from t1 to t2, you will see different output. You can test on any XML files with/without empty nodes. This is really a great team work!