Re: [xsl] Making all attributes empty and retaining the attributes names

Subject: Re: [xsl] Making all attributes empty and retaining the attributes names
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 30 May 2008 14:22:32 +0200
Pankaj Chaturvedi wrote:

I tried to retain the attributes names with something like below but I know
its incorrect:



	<xsl:template match="@*">
		<xsl:copy>
		<xsl:apply-templates select="name(@*)"/>
		</xsl:copy>	
	</xsl:template>	

Use <xsl:template match="@*"> <xsl:attribute name="{name()}"/> </xsl:template>


--


	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread