2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <xsl:output method="xml"/>
7 <xsl:param name="attributes" select="''"/>
9 <xsl:variable name="strip-attributes"
10 select="concat(' ', normalize-space($attributes), ' ')"/>
12 <xsl:template match="@*|text()|comment()|processing-instruction()">
16 <xsl:template match="*">
18 <xsl:for-each select="@*">
19 <xsl:if test="not(contains($strip-attributes, concat(' ',name(.),' ')))">
20 <xsl:copy-of select="."/>
23 <xsl:apply-templates select="node()"/>