XSLT ignores if it contains 0 elements
1 answer
Change the matching criteria for DifferenceNodes. Add a predicate filter that ensures that it only matches when there are DifferenceNodechildren.
<xsl:template match="DifferenceNodes[DifferenceNode]">
<div class="code">
<xsl:apply-templates select="DifferenceNode"/>
</div>
</xsl:template>
+5