mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
fixed & serialization bug introduced in 2.4.20 this changes a few things
* HTMLtree.c: fixed & serialization bug introduced in 2.4.20 * result/HTML/*: this changes a few things in the results Daniel
This commit is contained in:
17
xmlschemas.c
17
xmlschemas.c
@ -3041,7 +3041,24 @@ xmlSchemaBuildAContentModel(xmlSchemaTypePtr type,
|
||||
break;
|
||||
}
|
||||
case XML_SCHEMA_TYPE_RESTRICTION:
|
||||
if (type->baseType != NULL) {
|
||||
TODO
|
||||
} else if (type->subtypes != NULL)
|
||||
xmlSchemaBuildAContentModel(type->subtypes, ctxt, name);
|
||||
break;
|
||||
case XML_SCHEMA_TYPE_EXTENSION:
|
||||
if (type->baseType != NULL) {
|
||||
xmlSchemaTypePtr subtypes;
|
||||
|
||||
xmlSchemaBuildAContentModel(type->baseType, ctxt, name);
|
||||
subtypes = type->subtypes;
|
||||
while (subtypes != NULL) {
|
||||
xmlSchemaBuildAContentModel(subtypes, ctxt, name);
|
||||
subtypes = subtypes->next;
|
||||
}
|
||||
} else if (type->subtypes != NULL)
|
||||
xmlSchemaBuildAContentModel(type->subtypes, ctxt, name);
|
||||
break;
|
||||
case XML_SCHEMA_TYPE_GROUP:
|
||||
case XML_SCHEMA_TYPE_COMPLEX:
|
||||
case XML_SCHEMA_TYPE_COMPLEX_CONTENT:
|
||||
|
Reference in New Issue
Block a user