Commit 9989c7da authored by William M. Brack's avatar William M. Brack
Browse files

added code in xmlSchemaBuildAContentModel to handle element reference

* xmlschemas.c: added code in xmlSchemaBuildAContentModel to handle
  element reference within the xs:all construct (bug 139897)
parent 7b0e2763
Wed May 12 22:34:03 HKT 2004 William Brack <wbrack@mmm.com.hk>
* xmlschemas.c: added code in xmlSchemaBuildAContentModel to handle
element reference within the xs:all construct (bug 139897)
Wed May 12 17:27:18 HKT 2004 William Brack <wbrack@mmm.com.hk>
 
* xinclude.c: a little further fixing of fallback processing, this
......
......@@ -4473,6 +4473,13 @@ xmlSchemaBuildAContentModel(xmlSchemaTypePtr type,
start = ctxt->state;
while (subtypes != NULL) {
ctxt->state = start;
/*
* the following 'if' was needed to fix bug 139897
* not quite sure why it only needs to be done for
* elements with a 'ref', but it seems to work ok.
*/
if (subtypes->ref != NULL)
xmlSchemaBuildAContentModel(subtypes, ctxt, name);
elem = (xmlSchemaElementPtr) subtypes;
/* TODO : handle the namespace too */
if ((elem->minOccurs == 1) && (elem->maxOccurs == 1)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment