fix(namespaces): handle local namespaces correctly

The attribute namespace is default the local namespace,
which is the namespace of the element which contains the
attribute. Also we ignore the special namespace of the
xmlns attribute.

related to #CAM-1829