private void PreprocessAttribute(XmlSchemaAttribute attribute)
{
if (attribute.Name != null)
{
this.ValidateNameAttribute(attribute);
attribute.SetQualifiedName(new XmlQualifiedName(attribute.Name, this.targetNamespace));
}
else
{
base.SendValidationEvent("Sch_MissRequiredAttribute", "name", attribute);
}
if (attribute.Use != XmlSchemaUse.None)
{
base.SendValidationEvent("Sch_ForbiddenAttribute", "use", attribute);
}
if (attribute.Form != XmlSchemaForm.None)
{
base.SendValidationEvent("Sch_ForbiddenAttribute", "form", attribute);
}
this.PreprocessAttributeContent(attribute);
this.ValidateIdAttribute(attribute);
}