Subject: Re: [xsl] Removing a single namespace From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Mon, 12 Dec 2011 10:02:10 +0000 |
On 11 December 2011 23:39, Lynn Murdock <lmurdock@xxxxxxxx> wrote: > Hi- > > I have an XML-to-XML transform (not the same that I recently asked about) in which I am essentially copying everything except for a few elements that need to be modified. However, in copying, somehow an xsi: namespace is being added to the output, which I would like to suppress, as I don't use it. > <xsl:template match="@*|node()"> > <xsl:copy> > <xsl:apply-templates select="@*|node()"/> > </xsl:copy> > </xsl:template> xsl:copy and xsl:copy-of both have the attribute copy-namespaces, which you need to set to 'no', eg <xsl:copy copy-namespaces="no"/> -- Andrew Welch http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Removing a single namespace, Lynn Murdock | Thread | [xsl] Performance improvement for a, Manfred Staudinger |
Re: [xsl] why no indent here, Michael Kay | Date | RE: [xsl] why no indent here, Roelof Wobben |
Month |