Remove all attributes regardless of a node in XML

I want to remove all “date_modified” attributes throughout the XML.

<xsl:template match=”@*|node()”>

<xsl:copy>

<xsl:apply-templates select=”@*|node()”>

</xsl:apply-templates>

</xsl:copy>

<xsl:template match=”@date_modified”> </xsl:template></xsl:template>

Leave a comment