def __init__(self, xslt=None, xml_in='xin', xml_out='xout', *args, **kwargs): """ :param str xslt: XSLT object :param str xml_in: Name of the variable containing the xml :param str xml_out: Produced xml will be stored in this variable """ super(xslt2py, self).__init__(*args, **kwargs) self.xls_ns = 'http://www.w3.org/1999/XSL/Transform' self.xpath_prefix = '' self.xin = xml_in self.xout = xml_out self.action_mapping = self.get_action_mapping() self.operator_mapping = self.get_operator_mapping() self.py = Codebuffer() self.py.addline(self.xout + ' = \'\'')