def nspfxmap(*nspfxs):
 return dict(((pfx, nsmap[pfx]) for pfx in nspfxs))

def nspfxmap ( * nspfxs ) : return dict ( ( ( pfx , nsmap [ pfx ] ) for pfx in nspfxs ) )
return a dict containing the subset namespace prefix mappings specified by *nspfxs* .