[xsl] logic for remove namespace

Subject: [xsl] logic for remove namespace
From: "Rahul Singh rahulsinghindia15@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Sep 2016 11:49:30 -0000
Hi,

I am using below code to remove namespace, but i want to add this XSL in my
main XSL for related output fetch. Can this possible to add in same page
means main logic to extract something as well remove namespave logic:


<xsl:template match="name">
        <xsl:element name="lname">
                    <xsl:value-of select="/lname"/>
        </xsl:element>
    </xsl:template>

  *  <xsl:template match="*">*
*        <xsl:element name="{local-name()}">*
*            <xsl:for-each select="@*">*
*                <xsl:attribute name="{local-name()}">*
*                    <xsl:value-of select="."/>*
*                </xsl:attribute>*
*            </xsl:for-each>*
*            <xsl:apply-templates/>*
*        </xsl:element>*
*    </xsl:template>*

Current Thread