Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: how to remove target node if source field value is empty

$
0
0

Hello Hareesh,

 

I am using XSLT to remove all nodes, it is working for all sub nodes :

 

<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>


Viewing all articles
Browse latest Browse all 9129

Trending Articles



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