def nsdecls(*prefixes):
 return u' '.join([(u'xmlns:%s="%s"' % (pfx, nsmap[pfx])) for pfx in prefixes])

def nsdecls ( * prefixes ) : return u' ' . join ( [ ( u'xmlns:%s="%s"' % ( pfx , nsmap [ pfx ] ) ) for pfx in prefixes ] )
return a string containing a namespace declaration for each of *nspfxs* .