After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 630130 - GML schema will not validate, works in W3C tool.
GML schema will not validate, works in W3C tool.
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
2.7.3
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-20 09:25 UTC by Joshua McKenty
Modified: 2011-08-04 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to work with GML XML Schema (487 bytes, patch)
2011-04-26 03:38 UTC, TOYODA Eizi
none Details | Review
test xsd & xml files and sh-script (23.38 KB, text/plain)
2011-04-26 03:39 UTC, TOYODA Eizi
  Details

Description Joshua McKenty 2010-09-20 09:25:29 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.
Comment 1 gcpp.kalxas 2011-04-06 02:26:11 UTC
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
Comment 2 TOYODA Eizi 2011-04-26 03:38:17 UTC
Created attachment 186635 [details] [review]
patch to work with GML XML Schema
Comment 3 TOYODA Eizi 2011-04-26 03:39:40 UTC
Created attachment 186636 [details]
test xsd & xml files and sh-script
Comment 4 TOYODA Eizi 2011-04-26 03:44:28 UTC
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
Comment 5 Daniel Veillard 2011-08-04 13:21:39 UTC
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