xsl-list
[Top] [All Lists]

RE: Best namespace attribute removal strategy?

2004-06-21 05:50:31
 >
 > 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