Altova Mailing List Archives

Re: [xsl] Remove Namespace from ouput's root element

From: Ganesh Babu N <nbabuganesh@-----.--->
To: xsl-list@-----.------------.---
Date: 10/28/2010 1:29:00 PM
Dear Ramkumar,

Include exclude-result-prefixes="xlink" to your stylesheet element.


On Wed, Oct 27, 2010 at 1:21 PM,  <pankaj.c@t...> wrote:
> Until an unless you won't tell your exact requirement it will be difficult
> to suggest anything:
> What Martin and Michael has suggested works perfectly for me in 2.0. Even
> the below one works for me in 1.0:
> <xsl:template match="root">
> <xsl:element name="root">
> <xsl:copy-of select="@*"/>
> <xsl:apply-templates/>
> </xsl:element>
> </xsl:template>
> Are you trying to remove any specific namespace or all of them in root
> element? Please post the sample input and required output.
> HTH,
> Pankaj Chaturvedi
> --~------------------------------------------------------------------
> XSL-List info and archive:
> To unsubscribe, go to:
> or e-mail: <mailto:xsl-list-unsubscribe@l...>
> --~--

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe@l...>


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.