How to Eliminate empty tags in target XML in XSLT


To exclude empty tag in output XML from transformation apply below condition in transformation

<xsl:if test="(client:result3 != not(string(.)))">
      <client:result3>
        <xsl:value-of select="/client:process/client:input3"/>
      </client:result3>
      </xsl:if>

Comments

Popular posts from this blog

How to get only numbers from string in XSLT

SOA interview questions

[JMSClientExceptions:055144]Destination must be a topic