private bool IsChoiceFromChoiceSubstGroup(XmlSchemaChoice derivedChoice, XmlSchemaChoice baseChoice) {
if (!IsValidOccurrenceRangeRestriction(derivedChoice, baseChoice)) {
restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseRestRangeInvalid);
return false;
}
foreach(XmlSchemaParticle particle in derivedChoice.Items) {
if (GetMappingParticle(particle, baseChoice.Items) < 0) {
return false;
}
}
return true;
}