1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-25 10:50:08 +03:00

Fix XSD validation bug #630130

This bug in xmlschemas made validation with the GML Schemas fail
Test cases to be commited separately
This commit is contained in:
Toyoda Eizi 2011-08-04 16:40:48 +08:00 committed by Daniel Veillard
parent 4c4653e587
commit 8bb12988c4

View File

@ -15156,9 +15156,10 @@ xmlSchemaCheckSTPropsCorrect(xmlSchemaParserCtxtPtr ctxt,
FREE_AND_NULL(str)
return (XML_SCHEMAP_ST_PROPS_CORRECT_1);
}
if ( (WXS_IS_LIST(type) || WXS_IS_UNION(type)) &&
(WXS_IS_RESTRICTION(type) == 0) &&
(! WXS_IS_ANY_SIMPLE_TYPE(baseType))) {
if ((WXS_IS_LIST(type) || WXS_IS_UNION(type)) &&
(WXS_IS_RESTRICTION(type) == 0) &&
((! WXS_IS_ANY_SIMPLE_TYPE(baseType)) &&
(baseType->type != XML_SCHEMA_TYPE_SIMPLE))) {
xmlSchemaPCustomErr(ctxt,
XML_SCHEMAP_ST_PROPS_CORRECT_1,
WXS_BASIC_CAST type, NULL,