Subject: Re: Removing namespaces from source document (long)
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 9 Apr 2002 10:46:44 +0100
|
Mike said:
> 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()">
Or:
<xsl:element name="{name()}" namespace-uri="{namespace-uri()}">
...
</xsl:element>
if you want to maintain the namespace of the element... and also to
get it to work (you need {}s so that name() is evaluated rather than
the processor trying to use it as the name of the element and
barfing).
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|