[lxml-dev] lxml.etree.XMLSchema bug
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I got a bug using lxml.etree.XMLSchema, see below : anguenot@finlandia tmp]$ wget http://www.w3.org/2001/XMLSchema.xsd - --18:22:28-- http://www.w3.org/2001/XMLSchema.xsd => `XMLSchema.xsd' [...] 18:22:35 (14.03 KB/s) - `XMLSchema.xsd' saved [87,677/87,677] [anguenot@finlandia tmp]$ python Python 2.3.5 (#1, Apr 27 2005, 17:10:27) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import lxml.etree doc = lxml.etree.parse('XMLSchema.xsd') xmlschema = lxml.etree.XMLSchema(doc) Floating point exception [anguenot@finlandia tmp]$
I'm using the trunk version of lxml Any idea ? J. - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDA2XHGhoG8MxZ/pIRAtflAKCKPuLxF5/0vIIoAHoC/9vQyrmj/ACfR3aH fBZPN/vUME6wxggRuiVSEGM= =/k4H -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Just did another test on XML Schema validation. This time I didn't get any error but the validation was not correct. I tested with the files over there : http://svn.nuxeo.org/trac/pub/browser/z3lab/xpdlcore/trunk/tests/examples/ Just tried the validation with an editor like <oXygen /> and the validation was succesful. Is anyone using the XML Schema validation with lxml ? J. Julien Anguenot wrote:
Hi I got a bug using lxml.etree.XMLSchema, see below :
anguenot@finlandia tmp]$ wget http://www.w3.org/2001/XMLSchema.xsd --18:22:28-- http://www.w3.org/2001/XMLSchema.xsd => `XMLSchema.xsd' [...] 18:22:35 (14.03 KB/s) - `XMLSchema.xsd' saved [87,677/87,677]
[anguenot@finlandia tmp]$ python Python 2.3.5 (#1, Apr 27 2005, 17:10:27) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import lxml.etree doc = lxml.etree.parse('XMLSchema.xsd') xmlschema = lxml.etree.XMLSchema(doc)
Floating point exception [anguenot@finlandia tmp]$
I'm using the trunk version of lxml
Any idea ?
J.
-- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
lxml-dev mailing list lxml-dev@codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDA3DvGhoG8MxZ/pIRAu0TAJ0VxW3Ls1m7XPWW3ixaN08imz64CwCfdSna P2IDYpe/n5+zIVZIifKjoVQ= =evtD -----END PGP SIGNATURE-----
On Wed, 2005-08-17 at 19:16 +0200, Julien Anguenot wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Just did another test on XML Schema validation. This time I didn't get any error but the validation was not correct.
I tested with the files over there :
http://svn.nuxeo.org/trac/pub/browser/z3lab/xpdlcore/trunk/tests/examples/
Just tried the validation with an editor like <oXygen /> and the validation was succesful.
Can you specify the instances you are referring to? I just tested two of them: P:\libxml2-lab\tests\2005-08-17>xmllint --noout --schema TC-1025_schema_10_xpdl. xsd Valid\Recursive\M1.xpdl Valid\Recursive\M1.xpdl validates P:\libxml2-lab\tests\2005-08-17>xmllint --noout --schema TC-1025_schema_10_xpdl. xsd Valid\Business\Application_Repository.xpdl Valid\Business\Application_Repository.xpdl validates I'm using the CVS version: P:\libxml2-lab\tests\2005-08-17>xmllint --version xmllint: using libxml version 20620CVS2563 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv MemDebug Unicode Regexps Automata Schemas Modules [...] Is there a way to download the files directly, rather than copy&pase them from the svn browser? Regards, Kasimier
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kasimier Buchcik wrote:
On Wed, 2005-08-17 at 19:16 +0200, Julien Anguenot wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Just did another test on XML Schema validation. This time I didn't get any error but the validation was not correct.
I tested with the files over there :
http://svn.nuxeo.org/trac/pub/browser/z3lab/xpdlcore/trunk/tests/examples/
Just tried the validation with an editor like <oXygen /> and the validation was succesful.
Can you specify the instances you are referring to? I just tested two of them:
Actually, this validation on those files works well with xmllint but not with lxml.... Gonna try the CVS now. Thanks again for your answer. J. - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDA7MnGhoG8MxZ/pIRAm2nAJwPu2LhjNdYmnZ0PNVXtCY42WrthwCeJdRr ijHdL3zu1Cms7gVhxqbeDXk= =qQTW -----END PGP SIGNATURE-----
Hi, On Wed, 2005-08-17 at 18:28 +0200, Julien Anguenot wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi I got a bug using lxml.etree.XMLSchema, see below :
anguenot@finlandia tmp]$ wget http://www.w3.org/2001/XMLSchema.xsd - --18:22:28-- http://www.w3.org/2001/XMLSchema.xsd => `XMLSchema.xsd' [...] 18:22:35 (14.03 KB/s) - `XMLSchema.xsd' saved [87,677/87,677]
[anguenot@finlandia tmp]$ python Python 2.3.5 (#1, Apr 27 2005, 17:10:27) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import lxml.etree doc = lxml.etree.parse('XMLSchema.xsd') xmlschema = lxml.etree.XMLSchema(doc) Floating point exception [anguenot@finlandia tmp]$
I'm using the trunk version of lxml
Any idea ?
Libxml2 2.6.20 is not able to process the schema for schemas. This was fixed recently, so only available via CVS yet. With the CVS head of Libxml2, I get: $ xmllint --version /data/home/kbuchcik/gnomecvs/libxml2/.libs/lt-xmllint: using libxml version 20620-CVS2578 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv MemDebug Unicode Regexps Automata Schemas Modules kbu@librax:/data/home/kbuchcik/gnomecvs/libxml2$ xmllint --noout --schema XMLSchema.xsd TC-1025_schema_10_xpdl.xsd error : Unknown IO error TC-1025_schema_10_xpdl.xsd validates An "Unknown IO error", hmm, fishy, but seems not to further harm the validation. Regards, Kasimier
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Kasimier Buchcik wrote:
Hi I got a bug using lxml.etree.XMLSchema, see below :
anguenot@finlandia tmp]$ wget http://www.w3.org/2001/XMLSchema.xsd - --18:22:28-- http://www.w3.org/2001/XMLSchema.xsd => `XMLSchema.xsd' [...] 18:22:35 (14.03 KB/s) - `XMLSchema.xsd' saved [87,677/87,677]
[anguenot@finlandia tmp]$ python Python 2.3.5 (#1, Apr 27 2005, 17:10:27) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import lxml.etree doc = lxml.etree.parse('XMLSchema.xsd') xmlschema = lxml.etree.XMLSchema(doc)
Floating point exception [anguenot@finlandia tmp]$
I'm using the trunk version of lxml
Any idea ?
Libxml2 2.6.20 is not able to process the schema for schemas. This was fixed recently, so only available via CVS yet.
With the CVS head of Libxml2, I get:
$ xmllint --version /data/home/kbuchcik/gnomecvs/libxml2/.libs/lt-xmllint: using libxml version 20620-CVS2578 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv MemDebug Unicode Regexps Automata Schemas Modules
kbu@librax:/data/home/kbuchcik/gnomecvs/libxml2$ xmllint --noout --schema XMLSchema.xsd TC-1025_schema_10_xpdl.xsd error : Unknown IO error TC-1025_schema_10_xpdl.xsd validates
An "Unknown IO error", hmm, fishy, but seems not to further harm the validation.
ok cool. I'll try the cvs version then. Thanks for your reply. J. - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDA7CGGhoG8MxZ/pIRAmssAJ4hU7y3T9TrDM6NkGTZpUTE42t7LwCfd8u+ 8QlDdAzPzb6dU76HFrL3qWY= =Tme/ -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 YES ! The libxml2 cvs version works perfectl now. It validates now with xmllint so does lxml :) Thanks again :) J. Kasimier Buchcik wrote:
Hi,
On Wed, 2005-08-17 at 18:28 +0200, Julien Anguenot wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi I got a bug using lxml.etree.XMLSchema, see below :
anguenot@finlandia tmp]$ wget http://www.w3.org/2001/XMLSchema.xsd - --18:22:28-- http://www.w3.org/2001/XMLSchema.xsd => `XMLSchema.xsd' [...] 18:22:35 (14.03 KB/s) - `XMLSchema.xsd' saved [87,677/87,677]
[anguenot@finlandia tmp]$ python Python 2.3.5 (#1, Apr 27 2005, 17:10:27) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import lxml.etree doc = lxml.etree.parse('XMLSchema.xsd') xmlschema = lxml.etree.XMLSchema(doc)
Floating point exception [anguenot@finlandia tmp]$
I'm using the trunk version of lxml
Any idea ?
Libxml2 2.6.20 is not able to process the schema for schemas. This was fixed recently, so only available via CVS yet.
With the CVS head of Libxml2, I get:
$ xmllint --version /data/home/kbuchcik/gnomecvs/libxml2/.libs/lt-xmllint: using libxml version 20620-CVS2578 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv MemDebug Unicode Regexps Automata Schemas Modules
kbu@librax:/data/home/kbuchcik/gnomecvs/libxml2$ xmllint --noout --schema XMLSchema.xsd TC-1025_schema_10_xpdl.xsd error : Unknown IO error TC-1025_schema_10_xpdl.xsd validates
An "Unknown IO error", hmm, fishy, but seems not to further harm the validation.
Regards,
Kasimier
- -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDA72rGhoG8MxZ/pIRAm97AJ91klz8Xpsm4wQASFta9yk7Ev83lACfYPUy L2zOkS+KeEEuIKFEan6wQgI= =0oEH -----END PGP SIGNATURE-----
Julien Anguenot wrote:
YES ! The libxml2 cvs version works perfectl now. It validates now with xmllint so does lxml :)
Awesome, thanks Julien and Kasimier. I'm glad lxml works now too. :) Does this also mean the floating point error is gone that you reported earlier? I.e. you reported a case where xmllint succeeded but lxml failed, right? Regards, Martijn
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martijn Faassen wrote:
Julien Anguenot wrote:
YES ! The libxml2 cvs version works perfectl now. It validates now with xmllint so does lxml :)
Awesome, thanks Julien and Kasimier. I'm glad lxml works now too. :)
Does this also mean the floating point error is gone that you reported earlier?
No Failure anymore on lxml side with the libxml2 HEAD
I.e. you reported a case where xmllint succeeded but lxml failed, right?
It works as expected now. Same behavior for both of them. J. - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDBGPBGhoG8MxZ/pIRAk3JAJ0chNMy+4c+4NZjAsoci4DgG53SNACfZgEW 7iM5E/24dcFVMpSzRLZ5FBw= =sohL -----END PGP SIGNATURE-----
participants (4)
-
Julien Anguenot
-
Kasimier Buchcik
-
Martijn Faassen
-
Olivier Grisel