GNOME Bugzilla – Bug 724063
misleading diagnostic in relax-ng validation
Last modified: 2021-07-05 13:24:25 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
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.