I\'ve got some XML which declares a namespace which is only used for attributes, like this:
I found an explanation here.
Michael Kay wrote: exclude-result-prefixes only affects the namespaces copied from the stylesheet by a literal result element, it doesn't affect copying of namespaces from source documents.