-----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-----