GNOME Bugzilla – Bug 165346
XML schema validation causes Unimplemented block at xmlschemas.c:5756
Last modified: 2009-08-15 18:40:50 UTC
I am having trouble validating a LOM instance (http://ltsc.ieee.org/wg12/index.html) against the official schemas provided here: http://ltsc.ieee.org/xsd/lomv1.0/ When parsing the schemas, xmllint complains about Unimplemented block at xmlschemas.c:5756. The fact that the sample XML document doeesn't validate is probably just a side effect. I've attached the schemas and the sample to this bug report. Steps to reproduce and results: [bock@bock lom]$ xmllint --version xmllint: using libxml version 20617 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata Schemas Modules [bock@bock lom]$ xmllint --schema lomLoose.xsd usvs_example5.xml Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 Unimplemented block at xmlschemas.c:5756 <?xml version="1.0"?> <lom xmlns="http://ltsc.ieee.org/xsd/LOMv1p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ltsc.ieee.org/xsd/LOMv1p0 lom.xsd"> <general> <identifier> <catalog>Sample Catalog 1</catalog> <entry>Sample Entry 1</entry> </identifier> <structure> <source>LOMv1.0</source> <value>hierarchical</value> </structure> <aggregationLevel> <source>LOMv1.0</source> <value>4</value> </aggregationLevel> </general> </lom> usvs_example5.xml:4: element lom: Schemas validity error : Element 'lom': No matching global declaration available. usvs_example5.xml fails to validate [bock@bock lom]$
Created attachment 36567 [details] XML schemas and test file
The default namespace in your instance is not correct: try to change it from "http://ltsc.ieee.org/xsd/LOMv1p0" to "http://ltsc.ieee.org/xsd/LOM". Identity-constraints are not implemented yet, resulting in the funny "Unimplemented block" output.
Identity-constraints are implemented now in the CVS HEAD. Your example does work now on my side. Would be glad to hear from you working with it, since the LOM stuff has a lot of identity-constraints... makes a fine test case.
It works fine now, thanks!
This should be closed by release of libxml2-2.6.21, thanks, Daniel