On Mon, Sep 7, 2009 at 1:22 PM, David Carlisle wrote:
That generates a new element with the same local name, but in teh
default namespace of the stylesheet (which is no namespace in your case)
rather than the defaulr namespace of the source. If you do not intent
to change namespace, you can write
<xsl:template match="*">
<xsl:element name="{node-name(.)}">
<xsl:for-each select="@*">
<xsl:attribute name="{name(.)}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
as
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
Adam / David :
Thank you very much for your help and suggestions -- have been able
to resolve the problem now.
Ashok
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--