예제 #1
0
 def __init__(self, egdoc):
     from amara import bindery
     self.model_document = bindery.parse(egdoc)
     self.model_document.xml_model.prefixes = top_namespaces(
         self.model_document)
     self.setup_model()
     return
예제 #2
0
파일: schematron.py 프로젝트: mredar/amara
 def __init__(self, schdoc):
     from amara import bindery
     dispatcher.__init__(self)
     self.model_document = bindery.parse(schdoc)
     self.model_document.xml_model.prefixes = top_namespaces(self.model_document)
     self.rules = []
     self.setup_model()
     return
예제 #3
0
 def __init__(self, egdoc):
     from amara import bindery
     self.model_document = bindery.parse(egdoc)
     self.model_document.xml_model.prefixes = top_namespaces(self.model_document)
     self.setup_model()
     return