[xml/sgml-pkgs] Bug#749198: libxml2: incorrect Relax NG parser error with included grammar

Vincent Lefevre vincent at vinc17.net
Sun May 25 01:01:45 UTC 2014


Package: libxml2
Version: 2.9.1+dfsg1-3
Severity: normal
Forwarded: https://bugzilla.gnome.org/show_bug.cgi?id=730705

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.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libxml2 depends on:
ii  libc6              2.18-7
ii  liblzma5           5.1.1alpha+20120614-2
ii  multiarch-support  2.18-7
ii  zlib1g             1:1.2.8.dfsg-1

Versions of packages libxml2 recommends:
ii  xml-core  0.13+nmu2

libxml2 suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libxml2-rng-test.tar.xz
Type: application/octet-stream
Size: 42736 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20140525/cc560e5a/attachment-0001.obj>


More information about the debian-xml-sgml-pkgs mailing list