Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor