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 730705 - incorrect Relax NG parser error with included grammar
incorrect Relax NG parser error with included grammar
Status: RESOLVED DUPLICATE of bug 326174
Product: libxml2
Classification: Platform
Component: relaxng
git master
Other Linux
: Normal major
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-05-25 00:56 UTC by Vincent Lefevre
Modified: 2017-12-25 01:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (see ReadMe file) (41.73 KB, application/x-xz)
2014-05-25 00:56 UTC, Vincent Lefevre
Details

Description Vincent Lefevre 2014-05-25 00:56:57 UTC
Created attachment 277133 [details]
testcase (see ReadMe file)

Relax NG is broken: I get an Relax NG parser error on correct .rng files.
See attached testcase.

$ xmllint --relaxng test1.rng test.xml
test1.rng:3: element include: Relax-NG parser error : xmlRelaxNG: include docbook.rng has a define subscript but not the included grammar
dbpoolx.rng:10078: element define: Relax-NG parser error : Some defines for subscript needs the combine attribute
Relax-NG schema test1.rng failed to compile
<?xml version="1.0"?>
<para>test</para>

But if I replaced the <include href="dbpoolx.rng"/> in docbook.rng by the file (with the needed changes such as removing the grammar element), the error disappears:

$ xmllint --relaxng test2.rng test.xml
<?xml version="1.0"?>
<para>test</para>
test.xml validates

This issue is similar to:

  https://mail.gnome.org/archives/xml/2003-March/msg00037.html

but the testcase on this page works fine with the current libxml2 version.

Test under Debian/unstable with the libxml2 2.9.1+dfsg1-3 package.
Comment 1 Vincent Lefevre 2016-08-10 14:09:55 UTC
Any news? This bug is still present in libxml 20904.
Comment 2 Vincent Lefevre 2017-12-25 01:31:29 UTC
If I remove the comments from the rng files, validation no longer fails. So, this is a duplicate of bug 326174.

*** This bug has been marked as a duplicate of bug 326174 ***