def newTransformer(self, source=None): impl = TransformerFactoryImpl.newTransformer(self, source) # add listener tracemanager = impl.getTraceManager() tracemanager.addTraceListener(traceListener) return impl
def newTemplates(self, source): templates = TransformerFactoryImpl.newTemplates(self, source) return XalanTemplates(templates, source)