GNOME Bugzilla – Bug 630130
GML schema will not validate, works in W3C tool.
Last modified: 2011-08-04 13:21:39 UTC
gml_error.xsd:15: element complexType: Schemas parser error : local list type: A type, derived by list or union, must have the simple ur-type definition as base type, not '{http://www.example.org/gml}doubleList'. WXS schema gml_error.xsd failed to compile This bug has been reported on the mailing list since 2007 (http://mail.gnome.org/archives/xml/2007-June/msg00107.html), with a suggested patch in March of this year at http://mail.gnome.org/archives/xml/2010-March/msg00050.html. While I'm not sure that the patch is correct, I can also reproduce this bug.
I am having the same issue, as reported in the above message. I am using lxml binding and I get the error as in http://mail.gnome.org/archives/xml/2010-March/msg00050.html Are there any news on this issue? Has anyone provided a patch for this? Regards, Angelos
Created attachment 186635 [details] [review] patch to work with GML XML Schema
Created attachment 186636 [details] test xsd & xml files and sh-script
Comment on attachment 186635 [details] [review] patch to work with GML XML Schema Hi, I had the same problem. The suggested patch didn't work for libxml2-2.7.8. I had to change it as attached. This patch suppresses above-mentioned error, so GML schema can now be used. Patched validator can correctly detect valid and invalid structure of gml:doubleList and its derived types (pls find attached test files). Best, Eizi
Thanks Eizi ! I have commited the patch to git upstream so hopefully it will be in the next release. I still want to incorporate the test in libxml2 own test suite but it may need a bit more work, thanks again ! Daniel