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 595792 - Relax-NG parser internal error due to externalRef (regression)
Relax-NG parser internal error due to externalRef (regression)
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: relaxng
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-21 02:37 UTC by Vincent Lefevre
Modified: 2017-06-12 19:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (471 bytes, application/binary)
2009-09-21 02:37 UTC, Vincent Lefevre
Details

Description Vincent Lefevre 2009-09-21 02:37:04 UTC
Created attachment 143562 [details]
testcase

With libxml2 2.7.4 (under Linux and Mac OS X), I get an internal error from the
Relax-NG parser with the attached testcase. 2.7.3 has no problems on this
example.

$ xmllint --relaxng rngref.rng rngref.xml
rngref-ext.rng:5: element ref: Relax-NG parser error : Internal error:
reference has content in CheckReference tcont
Relax-NG schema rngref.rng failed to compile
<?xml version="1.0"?>
<root>
  <t>foo</t>
</root>
zsh: exit 5     xmllint --relaxng rngref.rng rngref.xml

Note: the .rng files have been generated from .rnc files with trang.
Comment 1 Daniel Veillard 2009-09-24 09:35:34 UTC
Okay, found and fixed in git, thanks for raising the issue !
I added the test to the regression suite,

 thanks !

Daniel