Subject: Re: [xsl] Xsl:copy-of writes xmlns:xsi always - Any way to avoid this? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 05 Mar 2007 11:06:44 +0100 |
I used the following .. But the problem was that it is not copying
nested. It just copies the direct chile element nodes. If the child element has
another child, do I have to write one more for-each OR is there a simple
way.
<xsl:for-each select="./*"> <xsl:element name="{name()}" namespace="{namespace-uri()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:element> </xsl:for-each>
Once I select a particular node, all the contents (including next level - children) should be translated to another XML. Please advice
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Xsl:copy-of writes xmlns:, binu.idicula | Thread | RE: [xsl] Xsl:copy-of writes xmlns:, Michael Kay |
RE: [xsl] Xsl:copy-of writes xmlns:, binu.idicula | Date | RE: [xsl] Xsl:copy-of writes xmlns:, Michael Kay |
Month |