+ return stylesheet_result
+
+ def wrap_up(self, rspec):
+ filepath = 'processors/' + self.final_processor
+
+ styledoc = libxml2.parseFile(filepath)
+ style = libxslt.parseStylesheetDoc(styledoc)
+ doc = libxml2.parseDoc(rspec)
+ result = style.applyStylesheet(doc, None)
+ stylesheet_result = style.saveResultToString(result)
+ style.freeStylesheet()
+ doc.freeDoc()
+ result.freeDoc()