def styles(self): if self._styles: return self._styles self._styles = Styles.load(self.root_element, container=self) return self._styles
def _load_styles_from_xml(self, xml): root = parse_xml_from_string(xml) return Styles.load(root)