'Called from element.py'

def build_caches(self, element):

    if (not self.element_dict.has_key(element.qname)):
        self.element_dict[element.qname] = []
    self.element_dict[element.qname].append(element)
    if (element.qname == (STYLENS, u'style')):
        self.__register_stylename(element)
    styleref = element.getAttrNS(TEXTNS, u'style-name')
    if ((styleref is not None) and self._styles_ooo_fix.has_key(styleref)):
        element.setAttrNS(TEXTNS, u'style-name', self._styles_ooo_fix[styleref])
