Re: [xsl] Trouble with namespaces and running identity

Subject: Re: [xsl] Trouble with namespaces and running identity
From: "Robert Stukey" <restukey@xxxxxxxxx>
Date: Tue, 9 Mar 2004 22:50:12 -0500
           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


Current Thread