Quantcast
Viewing all articles
Browse latest Browse all 872

How to delete empty tags in Biztalk map

Hello I am looking for XSLT snippet that removes Home phone   but not the   Indicator.  

            <ns4:Type code="IN"></ns4:Type>
            <ns4:Contact>
              <ns1:Indicator code="P"></ns1:Indicator>
              <ns1:Name>CALEB</ns1:Name>
              <ns1:LName>ARNOLD</ns1:LName>
              <ns1:Contact>
               <ns1:HomePhone1></ns1:HomePhone1>

Right now i am using following xslt but its removing Indicator also.

<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output omit-xml-declaration="yes" indent="yes"/>
 <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(text()[normalize-space()])]"/>
</xsl:stylesheet>

Thanks


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>