This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Removing namespaces from source document (long)
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 9 Apr 2002 10:28:25 +0100
- Subject: RE: [xsl] Removing namespaces from source document (long)
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list