def compact_attr_qnames(ns_stack, attrs)
      Hash[attrs.map do |name,value|
             [compact_qname(ns_stack, name), value]
           end]
    end
def compact_attr_qnames(ns_stack, attrs)
      Hash[attrs.map do |name,value|
             [compact_qname(ns_stack, name), value]
           end]
    end
compact all attribute QNames to Strings