Subject: Changing Attribute Value in all the ChildNodes at any level down the current node.
From: "Animesh Sharma" <asharma@xxxxxxxxxxxxxxxx>
Date: Thu, 27 May 2004 11:06:00 +0530
|
Hi,
I have to remove a particular attribute (in following example it is "href") from all the ChildNodes of the particular node.
I tried to write template something as follows:
<xsl:template match="//body/namespace/form/snip/csf/td[position()=1]/table[position()=2]">
<xsl:apply-templates select="@*"/>
<xsl:attribute name="href"/>
<xsl:copy>
<xsl:apply-templates select="*"/>
</xsl:copy>
</xsl:template>
But it does not seems to work as I have expected.
Thanks,
Animesh
|