preserve attribute namespaces on element functions