Re: [xml] schema validation of element hierarchy through element wildcard



Hi,

philippe ventrillon wrote:
Hi !
I face a problem using libxml2 and as i am quite new to xml ans schema, i'd like someone to tell me if
this is a bug or if i missed something obvious.

[...]

It's a bug. I'll commit the fix + add your test case to the regression
tests soon; below is the patch in case you need it now.

Regards,

Kasimier

-----------------------------------------------------------------
*** xmlschemas.c        17 Nov 2004 13:14:27 -0000      1.92
--- xmlschemas.c        25 Nov 2004 09:40:02 -0000
***************
*** 15561,15568 ****
                    "Internal error: xmlSchemaValidateAnyInternal, "
                    "validating an element in the context of a wildcard.",
                    NULL, NULL);
!           } else if (ret > 0)
!               return (ret);
        } else if (wild->processContents == XML_SCHEMAS_ANY_STRICT) {
            /* TODO: Change to proper error code. */
            xmlSchemaVWildcardErr(ctxt, XML_SCHEMAV_CVC_ELT_1,
--- 15561,15568 ----
                    "Internal error: xmlSchemaValidateAnyInternal, "
                    "validating an element in the context of a wildcard.",
                    NULL, NULL);
!           }
!           return (ret);
        } else if (wild->processContents == XML_SCHEMAS_ANY_STRICT) {
            /* TODO: Change to proper error code. */
            xmlSchemaVWildcardErr(ctxt, XML_SCHEMAV_CVC_ELT_1,
-----------------------------------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]