This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Removing namespaces from source document (long)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]