X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlextension.py;h=f90e0fb186b2f678191c2acd830c561168936398;hb=31cc4fa991896f000abb106916662923f37bc3a6;hp=4fc1ab5867629de98d4d338a8c18970e8a8ecaf4;hpb=57a9d9950b38dc3b3a98d38c60edcf47aedb24df;p=sfa.git diff --git a/sfatables/xmlextension.py b/sfatables/xmlextension.py index 4fc1ab58..f90e0fb1 100644 --- a/sfatables/xmlextension.py +++ b/sfatables/xmlextension.py @@ -5,18 +5,17 @@ # - The parameters that the processor needs to evaluate the context import libxml2 -from sfatables.globals import * class Xmlextension: - def __init__(self, dir, component_name): + def __init__(self, file_path): + self.context = "" self.processor = "" self.operand = "VALUE" self.arguments = [] self.terminal = 0 - filename = dir+"/"+component_name+".xml" - self.xmldoc = libxml2.parseFile(filename) + self.xmldoc = libxml2.parseFile(file_path) # TODO: Check xmldoc against a schema p = self.xmldoc.xpathNewContext()