Relax NG is broken: I get an Relax NG parser error on correct .rng files. I've attached a 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 referenced 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 this libxml2 version.
Control: forwarded -1 https://bugzilla.gnome.org/show_bug.cgi?id=326174 Control: found -1 2.9.4+dfsg1-5.2 This is actually due to comments before the root element grammar. Removing these comments makes the failure disappear.