diff --git a/lib/xsdParser.coffee b/lib/xsdParser.coffee index 3524f48..83061f0 100644 --- a/lib/xsdParser.coffee +++ b/lib/xsdParser.coffee @@ -329,9 +329,13 @@ module.exports = atom.notifications.addError "can't find base type " + extenType.$.base continue + # Get extending elements to merge them with linkType children + extendingType = @initTypeObject null, "someType" + @parseComplexType extenType, extendingType + type.xsdTypeName = linkType.xsdTypeName type.xsdChildrenMode = linkType.xsdChildrenMode - type.xsdChildren = linkType.xsdChildren + type.xsdChildren = linkType.xsdChildren.concat extendingType.xsdChildren type.xsdAttributes = extenAttr.concat linkType.xsdAttributes type.description ?= linkType.description type.type = linkType.type