Lines Matching refs:qnames
128 def _serialize_html(write, elem, encoding, qnames, namespaces): argument
136 tag = qnames[tag]
141 _serialize_html(write, e, encoding, qnames, None)
151 v = qnames[v.text]
155 write(" %s=\"%s\"" % (qnames[k], v))
174 _serialize_html(write, e, encoding, qnames, None)
190 qnames, namespaces = _namespaces(
194 write, root, encoding, qnames, namespaces
204 qnames = {None: None}
227 qnames[qname] = encode("%s:%s" % (prefix, tag))
229 qnames[qname] = encode(tag) # default element
237 qnames[qname] = encode(qname)
248 if isinstance(tag, QName) and tag.text not in qnames:
251 if tag not in qnames:
258 if key not in qnames:
260 if isinstance(value, QName) and value.text not in qnames:
263 if isinstance(text, QName) and text.text not in qnames:
265 return qnames, namespaces