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

git-svn-id: svn://10.0.0.236/trunk@216861 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronr%us.ibm.com
2006-12-11 22:14:11 +00:00
parent a8e91342ed
commit b79fe3c6df

View File

@@ -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;