Clear cached nodes when relinking namespaces
Remove attribute namespace when it matches the host element's namespace