from sfatables.globals import *
class XMLRule:
-
def apply_processor(self, type, doc, output_xpath_filter=None):
processor = self.processors[type]
filepath = os.path.join(sfatables_config, 'processors', processor)
# XXX
+ print filepath
styledoc = libxml2.parseFile(filepath)
style = libxslt.parseStylesheetDoc(styledoc)
result = style.applyStylesheet(doc, None)
style = libxslt.parseStylesheetDoc(styledoc)
#doc = libxml2.parseDoc(rspec)
result = style.applyStylesheet(doc, None)
- stylesheet_result = result #style.saveResultToString(result)
+ stylesheet_result = style.saveResultToString(result)
style.freeStylesheet()
- #doc.freeDoc()
- #result.freeDoc()
+ doc.freeDoc()
+ result.freeDoc()
+ import pdb
+ pdb.set_trace()
return stylesheet_result
def match(self, rspec):