Return a string containing a namespace declaration for each of *nspfxs*, in the order they are specified.
(*nspfxs)
| 55 | |
| 56 | |
| 57 | def nsdecls(*nspfxs): |
| 58 | """ |
| 59 | Return a string containing a namespace declaration for each of *nspfxs*, |
| 60 | in the order they are specified. |
| 61 | """ |
| 62 | nsdecls = "" |
| 63 | for nspfx in nspfxs: |
| 64 | nsdecls += ' xmlns:%s="%s"' % (nspfx, nsmap[nspfx]) |
| 65 | return nsdecls |
| 66 | |
| 67 | |
| 68 | class Element(object): |
no outgoing calls
no test coverage detected
searching dependent graphs…