RE: [xsl] Removing namespaces from source document (long)

Subject: RE: [xsl] Removing namespaces from source document (long)
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 9 Apr 2002 10:28:25 +0100
> I have some (unused) namespace declarations in my source xml
> document that I
> want to banish.

The basic answer is that <xsl:copy> and <xsl:copy-of> will always copy the
namespace nodes from the source element to the result element. If you don't
want them copied, you have to use

<xsl:element name="name()">

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread