Hi All,
I have a xml something like this:
Code:
<addres>
<country>xxxx</country>
<city>xxxx</city>
<name>xxxxxxxx</name>
<street>xxxxxxx</street>
<!-- like this n number of element can come -->
</addres>
Out of those all tag any of tag e.g. <name> I don't want to produce in out put xml for exp. output should be like below:
Code:
<addres>
<country>xxxx</country>
<city>xxxx</city>
<street>xxxxxxx</street>
<!-- like this n number of element can come -->
</addres>
known way is to apply all templates except <name> element e.g. below
Code:
<xsl:template match="address">
<xsl:apply-templates select="country"/>
<xsl:apply-templates select="city"/>
<!-- let's not apply template for name-->
<xsl:apply-templates select="street"/>
<!-- like this n number of tag can come-->
</xsl:template>
but the issue is there can n number of tag be come which is difficult to apply-template one by one for all. So my question is there any way to exclude that particular tag to be in output xml?
Thanks in advance
Mohan