code: def findattr(self, name, resolved=True):
          
          name = '@%s' % name
          parent = self.top().resolved
          if parent is None:
              result, ancestry = self.query(name, node)
          else:
              result, ancestry = self.getchild(name, parent)
          if result is None:
              return result
          if resolved:
              result = result.resolve()
          return result
docs: Find an attribute type definition.
          @param name: An attribute name.
          @type name: basestring
          @param resolved: A flag indicating that the fully resolved type should
              be returned.
          @type resolved: boolean
          @return: The found schema I{type}
          @rtype: L{xsd.sxbase.SchemaObject}