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 724063 - misleading diagnostic in relax-ng validation
misleading diagnostic in relax-ng validation
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: relaxng
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-10 19:16 UTC by Peter A. Bigot
Modified: 2021-07-05 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
RELAX NG XML schema and document demonstrating problem (586 bytes, application/zip)
2014-02-10 19:16 UTC, Peter A. Bigot
Details

Description Peter A. Bigot 2014-02-10 19:16:05 UTC
Created attachment 268713 [details]
RELAX NG XML schema and document demonstrating problem

The attached RNG schema and sample document produces:

llc[520]$ xmllint --noout --relaxng bug.rng bug.xml
bug.xml:5: element d: Relax-NG validity error : Element a has extra content: d
Relax-NG validity error : Extra element a in interleave
bug.xml:3: element a: Relax-NG validity error : Element s failed to validate content
bug.xml fails to validate

It is true that the content is invalid, but it has nothing to do with an extra element a in the interleave.  The root cause may be related to 324164 but in this case there is no interleave-of-interleave.

If the zeroOrMore elements are replaced by optional elements, the erroneous diagnostic remains but the useful diagnostic is dropped:

llc[521]$ xmllint --noout --relaxng bug.rng bug.xml
Relax-NG validity error : Extra element a in interleave
bug.xml:3: element a: Relax-NG validity error : Element s failed to validate content
bug.xml fails to validate
Comment 1 GNOME Infrastructure Team 2021-07-05 13:24:25 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/

Thank you for your understanding and your help.