From: pascale.noyret Date: Wed, 27 Nov 2019 16:12:35 +0000 (+0100) Subject: elt abstrait dans inheritedBy X-Git-Tag: V200520bis~98 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08843e2f7cb279568bff3a00cf256904f9d5d0c0;p=tools%2Feficas.git elt abstrait dans inheritedBy --- diff --git a/Efi2Xsd/AccasXsd.py b/Efi2Xsd/AccasXsd.py index fd66a798..d0ef7753 100755 --- a/Efi2Xsd/AccasXsd.py +++ b/Efi2Xsd/AccasXsd.py @@ -363,13 +363,17 @@ class X_JDC_CATA : # self.texteSimple += commande.texteComplexe # self.texteCata += commande.texteElt #self.texteSimple += TypeEtEltAbstraitCodeSpec.format(self.nomDuCodeDumpe) - #self.texteCata += EltCodeSpecDsCata.format(self.nomDuCodeDumpe) + self.texteTypeAbstrait='' + for codeHeritant in self.importedBy: + self.texteCata += EltCodeSpecDsCata.format(codeHeritant) + self.texteTypeAbstrait += eltAbstrait.format(codeHeritant,codeHeritant,codeHeritant) self.texteCata += finTypeCata self.texteElt = eltCata.format(self.nomDuCodeDumpe,self.nomDuCodeDumpe, self.nomDuTypePyxb) self.texteXSD = texteDebut.format(self.nomDuCodeDumpe,self.nomDuCodeDumpe,self.nomDuCodeDumpe,self.nomDuCodeDumpe) #self.texteXSD += textDeclaration self.texteXSD += self.texteSimple + self.texteXSD += self.texteTypeAbstrait self.texteXSD += self.texteCata self.texteXSD += self.texteElt self.texteXSD += texteFin diff --git a/Efi2Xsd/balisesXSD.py b/Efi2Xsd/balisesXSD.py index 8a300646..77e20215 100644 --- a/Efi2Xsd/balisesXSD.py +++ b/Efi2Xsd/balisesXSD.py @@ -55,6 +55,9 @@ includeCata = '\t\n\n' debutEtension = '\t\t\n\t\t\n' finExtension = '\t\t\n\t\t\n' +# TYPE ABSTRAIT +eltAbstrait = '\t\t\n\t\t' + if __name__ == '__main__' : print ('ne fait rien')