RE: [xsl] Best namespace attribute removal strategy?

Subject: RE: [xsl] Best namespace attribute removal strategy?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 21 Jun 2004 13:50:31 +0100
>  >
>  > For the second I've done this in my stylesheet (also on advise
>  > from Tom):
>  >
>  > <xsl:copy-of select="/html/body/*">
> 
> I was under the impression that exclude-result-prefixes does 
> not apply 
> to elements generated by xsl:copy-of. 

Correct. In XSLT 1.0, xsl:copy-of copies all namespaces. In 2.0, this can be
suppressed by writing <xsl:copy-of select="..." copy-namespaces="no"/>

Michael Kay


Current Thread