Not sure if these will help? They are from a tutorial I
downloaded, not sure from where.
<!-- Matches attributes with names qualified to a namespace OTHER than
the namespace of the containing element -->
<xsl:template match="@*[namespace-uri()]">
<xsl:attribute name="{local-name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
<!-- Matches attributes with the same namespace as the
containing element -->
<xsl:template match="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list