From 08843e2f7cb279568bff3a00cf256904f9d5d0c0 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Wed, 27 Nov 2019 17:12:35 +0100 Subject: [PATCH] elt abstrait dans inheritedBy --- Efi2Xsd/AccasXsd.py | 6 +++++- Efi2Xsd/balisesXSD.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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') -- 2.39.2