complexTypes.put(ct,def);
XSType baseType = ct.getBaseType();
if(baseType.isComplexType() && !isAnyType(baseType)) {
// copy inheritance
def.addChild(baseType.apply(this));
if(ct.getDerivationMethod()==XSType.EXTENSION) {
XSContentType explicitContent = ct.getExplicitContent();
if(explicitContent!=null)
def.addChild(explicitContent.apply(this));