Hi list,

I encouter the same problem, than:
<https://bugzilla.gnome.org/show_bug.cgi?id=630130>


The patch provided by TOYODA Eizi is quite small, and 'works for me'
with latest libxml2 trunk version.


Could we find a way to close this ticket, before next release ?


--- xmlschemas.c.orig   2011-04-24 14:58:16.000000000 +0000
+++ xmlschemas.c        2011-04-24 15:47:50.000000000 +0000
@@ -15158,7 +15158,11 @@
     }
     if ( (WXS_IS_LIST(type) || WXS_IS_UNION(type)) &&
         (WXS_IS_RESTRICTION(type) == 0) &&
-        (! WXS_IS_ANY_SIMPLE_TYPE(baseType))) {
+        (
+          (! 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,



Tks in advance,

--
Olivier
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to