Fixed a bug in xmlSchemaFindRedefCompInGraph() which caused the search for
* xmlschemas.c: Fixed a bug in xmlSchemaFindRedefCompInGraph()
which caused the search for components to stop at the
first encountered attribute group component.
Fixed error report in xmlSchemaCheckSRCRedefineFirst(): the
designation of a not-found component was not reported.
diff --git a/xmlschemas.c b/xmlschemas.c
index 1ec8ac8..87a0540 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -5024,6 +5024,7 @@
{
return(ret);
}
+ break;
default:
/* Should not be hit. */
return(NULL);
@@ -20238,7 +20239,7 @@
* reference kind.
*/
XML_SCHEMAP_SRC_REDEFINE, node, NULL,
- "The %s to be redefined could not be found in "
+ "The %s '%s' to be redefined could not be found in "
"the redefined schema",
WXS_ITEM_TYPE_NAME(item),
xmlSchemaFormatQName(&str, redef->refTargetNs,