def convert_spread(): xsltproc = Processor() xsltproc.appendStylsheetUri("templ.xsl") html = xsltproc.runUri("temp.xml")