1<?xml version="1.0"?> 2<xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4<xsl:template match="@*"> 5 <xsl:copy/> 6</xsl:template> 7<xsl:template match="element"> 8 <xsl:copy> 9 <xsl:attribute name="foo">xsl</xsl:attribute> 10 <xsl:apply-templates select="@*"/> 11 </xsl:copy> 12</xsl:template> 13</xsl:stylesheet> 14 15