code: def getTypeDefinition(self, attribute=None):
          
          if attribute:
              return XMLSchemaComponent.getTypeDefinition(self, attribute)
          gt = XMLSchemaComponent.getTypeDefinition(self, 'type')
          if gt:
              return gt
          return self.content
docs: If attribute is None, "type" is assumed, return the corresponding
          representation of the global type definition (TypeDefinition),
          or the local definition if don't find "type".  To maintain backwards
          compat, if attribute is provided call base class method.