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 165346 - XML schema validation causes Unimplemented block at xmlschemas.c:5756
XML schema validation causes Unimplemented block at xmlschemas.c:5756
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.17
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-26 21:20 UTC by Benoit Grégoire
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
XML schemas and test file (15.84 KB, application/x-gzip)
2005-01-26 21:21 UTC, Benoit Grégoire
Details

Description Benoit Grégoire 2005-01-26 21:20:16 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]$
Comment 1 Benoit Grégoire 2005-01-26 21:21:19 UTC
Created attachment 36567 [details]
XML schemas and test file
Comment 2 kbuchcik 2005-01-27 17:00:31 UTC
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.
Comment 3 kbuchcik 2005-03-07 11:23:53 UTC
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.
Comment 4 Benoit Grégoire 2005-07-05 14:17:21 UTC
It works fine now, thanks! 
Comment 5 Daniel Veillard 2005-09-05 09:01:55 UTC
This should be closed by release of libxml2-2.6.21,

  thanks,

Daniel