private void ValidateAttributes (DTDAttListDeclaration decl, bool validate)
{
DtdValidateAttributes (decl, validate);
for (int i = 0; i < attributeCount; i++) {
AttributeSlot slot = attributes [i];
if (slot.Name == "xmlns" || slot.Prefix == "xmlns")
nsmgr.AddNamespace (
slot.Prefix == "xmlns" ? slot.LocalName : String.Empty,
slot.Value);
}
for (int i = 0; i < attributeCount; i++) {
AttributeSlot slot = attributes [i];
if (slot.Name == "xmlns")
slot.NS = XmlNamespaceManager.XmlnsXmlns;
else if (slot.Prefix.Length > 0)
slot.NS = LookupNamespace (slot.Prefix);
else
slot.NS = String.Empty;
}
}