def applyStylesheet(self, doc, params): """Apply the stylesheet to the document""" if doc == None: doc__o = None else: doc__o = doc._o ret = libxsltmod.xsltApplyStylesheet(self._o, doc__o, params) if ret == None: return None return libxml2.xmlDoc(_obj=ret)