>Can anyone help me to avoid the parents namespace nodes being getting
>copied as a result of the <xsl:copy-of> .

If it's copying that namespace node, it needs it in order to put some
element or attribute into that namespace.

If you want to change namespaces, like changing foo:bar to goo:bar,
then you shouldn't use copy-of because the element name is being
changed.

I suggest the following approach:
1. Get your copying/renaming to work the way you want it.
2. Examine the result to see if there are namespace declarations that
   are not being used.
3. If so, use exclude-result-prefixes to remove extraneous
   namespace declarations.
4. If you ask for a namespace to be excluded and it comes through
   anyway, that means the namespace *is* being used.
.................David Marston


Reply via email to