[XForms] incorrect dup schema error message using inline schemas. Bug 350067, patch by msterlin, r=olli+aaronr

This commit is contained in:
aaronr%us.ibm.com 2006-12-11 22:14:11 +00:00
Родитель 8ad8ca662a
Коммит 59ea834934
1 изменённых файлов: 6 добавлений и 9 удалений

Просмотреть файл

@ -842,15 +842,12 @@ nsXFormsModelElement::InitializeInstances()
// document has finished loading.
mPendingInlineSchemas.AppendString(id);
} else {
if (!IsDuplicateSchema(el)) {
nsCOMPtr<nsISchema> schema;
// no need to observe errors via the callback. instead, rely on
// this method returning a failure code when it encounters errors.
rv = mSchemas->ProcessSchemaElement(el, nsnull,
getter_AddRefs(schema));
if (NS_SUCCEEDED(rv))
mSchemaCount++;
}
// We have an inline schema in the model element that was
// referenced by the schema attribute. It will be processed
// in FinishConstruction so we skip it now to avoid processing
// it twice and giving invalid 'duplicate schema' errors.
mSchemaTotal--;
i--;
}
} else {
nsCAutoString uriSpec;