xsl-list
[Top] [All Lists]

[xsl] Remove identity Transform <ns2:local xmlns:ns2="uri">

2012-05-07 07:46:45
Hi ,
I am using the following identity transform and I want to remove the
<ns2:local xmlns:ns2="uri"> which might occur in my input xml. How do
I remove this node?


 <xsl:template match="@*|node()">
    <xsl:copy>
       <xsl:apply-templates select="@*|node()"/>
     </xsl:copy>
 </xsl:template>
<xsl:template match="*">
<xsl:element name="{name(.)}">
        <xsl:apply-templates select="@*|node()"/>
    </xsl:element>
</xsl:template>

Any input would help.

Thanks
Senthil

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>