collect namespaces from attributes in source document
handle default namespace