GNOME Bugzilla – Bug 455953
XML Schema : internal validation error if there are IDCs in imported schemas
Last modified: 2007-08-23 09:31:18 UTC
Validation of XML documents with a XML Schema containing IDCs and importing other XML schemas with IDC inside, generates an internal error. See attached test case that produces following output: $ xmllint --schema MainSchema.xsd Main.xml Main.xml:4: element AnotherElement: Schemas validity error : Internal error: xmlSchemaIDCRegisterMatchers, Could not find an augmented IDC item for an IDC definition. Main.xml:4: element AnotherElement: Schemas validity error : Internal error: xmlSchemaValidateElem, calling xmlSchemaValidateElemDecl(). Main.xml:4: element AnotherElement: Schemas validity error : Internal error: xmlSchemaDocWalk, calling xmlSchemaValidateElem(). Main.xml validation generated an internal error And take a look at proposed patch.
Created attachment 91631 [details] Test case
Created attachment 91633 [details] [review] Proposed patch
Okay, the patch looks sane, and seems to fix the problem, and doesn't introduce any detectable regressions. So I applied it added the test to the regression suite and commited it to SVN, thanks a lot ! Daniel