#584654 libxml2-utils: broken report when element has an impossible children element

Package:
libxml2-utils
Source:
libxml2
Description:
GNOME XML library - utilities
Submitter:
"Marc Dequènes (Duck)"
Date:
2013-10-24 04:21:04 UTC
Severity:
normal
#584654#5
Date:
2010-06-05 09:55:53 UTC
From:
To:
Coin,

Using test.xml attached, and the following command:
xmllint --relaxng /usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng
--xinclude --noblanks --noout test.xml

I got:
test.xml:7: element chapter: Relax-NG validity error : Did not expect
element chapter there
test.xml:9: element para: Relax-NG validity error : Did not expect
element para there
test.xml:9: element para: Relax-NG validity error : Expecting element
example, got para
test.xml:9: element para: Relax-NG validity error : Expecting element
bridgehead, got para
test.xml:10: element filename: Relax-NG validity error : Element para
has extra content: filename
test.xml fails to validate

which is wrong because the para element has absolutly no problem. In
fact the 'filename' element cannot contain a 'varname' element (even
if i don't see why DocBook authors made this restriction). So the
error message is wrong and misleading: using a 'replaceable' element
instead of 'varname' solves the mistake, as expected.

Regards.

#584654#10
Date:
2013-10-24 04:19:48 UTC
From:
To:
Reproducable in squeeze and sid.
Consider report it to upstream?