private void PreprocessGroup(XmlSchemaGroup group) { if (group.Name != null) { this.ValidateNameAttribute(group); group.SetQualifiedName(new XmlQualifiedName(group.Name, this.targetNamespace)); } else { base.SendValidationEvent("Sch_MissRequiredAttribute", "name", group); } if (group.Particle == null) { base.SendValidationEvent("Sch_NoGroupParticle", group); } else { if (group.Particle.MinOccursString != null) { base.SendValidationEvent("Sch_ForbiddenAttribute", "minOccurs", group.Particle); } if (group.Particle.MaxOccursString != null) { base.SendValidationEvent("Sch_ForbiddenAttribute", "maxOccurs", group.Particle); } this.PreprocessParticle(group.Particle); this.PreprocessAnnotation(group); this.ValidateIdAttribute(group); } }
private void PreprocessGroup(XmlSchemaGroup group) { if (group.Name != null) { ValidateNameAttribute(group); group.SetQualifiedName(new XmlQualifiedName(group.Name, this.targetNamespace)); } else { SendValidationEvent(Res.Sch_MissRequiredAttribute, "name", group); } if (group.Particle == null) { SendValidationEvent(Res.Sch_NoGroupParticle, group); return; } if (group.Particle.MinOccursString != null) { SendValidationEvent(Res.Sch_ForbiddenAttribute, "minOccurs", group.Particle); } if (group.Particle.MaxOccursString != null) { SendValidationEvent(Res.Sch_ForbiddenAttribute, "maxOccurs", group.Particle); } PreprocessParticle(group.Particle); PreprocessAnnotation(group); //Set parent of annotation child of group ValidateIdAttribute(group); }