LSX-00146: element or attribute is improperly defined Cause: An element or attribute definition must have either its "type" attribute set or must have one of its children be a "simpleType" or "complexType" element but both conditions cannot exist. Action: Remove the erroneous condition.