# 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
debutEtension = '\t\t<xs:complexContent>\n\t\t<xs:extension base="{}:T_Code_Specific">\n'
finExtension = '\t\t</xs:extension>\n\t\t</xs:complexContent>\n'
+# TYPE ABSTRAIT
+eltAbstrait = '\t\t<xs:complexType name="T_{}" abstract="true"/>\n\t\t<xs:element name="{}" type="Vimmp:T_{}\n"/>'
+
if __name__ == '__main__' :
print ('ne fait rien')