The issue is ...I dont want to put seperate-seperate condition for each & every tag present in the structure..
I want something..which can cover whole structure..... something to put in " <xsl:template match="/">" or something ...........
I want something ..some pattern to put in match.. so that is covers whole xslt.
Unfortunately, there's no such a thing... Document is quite clear on that point...
+" When mapping an optional source node to an optional target node, it is important to surround the mapping with an xsl:if statement that tests for the existence of the source node. If this is not done and the source node does not exist in the input document, an empty node is created in the target document. "+
If you don't want to go down the if approach you can simply execute this as a secondary template in xlst or as another xslt and it will remove all null nodes.