Hello
I have input file format like below :
I am using below XSLT in my mapping:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[not(@*) and not(*) and (not(text()) or .=-1)]"/>
</xsl:stylesheet>
I am receiving output file as:
current XSLT logic is only eliminating attributes of the empty node.
How can I remove both empty nodes and all empty attributes from my input message.
Thank you
John