Set required = new HashSet(_requiredAttributes);
List errors = new ArrayList();
for (int i = 0; i < count; i++)
{
Attribute a = (Attribute) l.get(i);
String name = a.getName();
if (!_knownAttributes.contains(name))
errors.add(ImplMessages.unknownAttribute(name));
checkUniquness(name, a.getValue(), element.getLocation(), errors);
required.remove(name);
}
Iterator it = required.iterator();