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 527090 - libxml2 called from XML::LibXML perl module doesn't validate valid RelaxNG scheme
libxml2 called from XML::LibXML perl module doesn't validate valid RelaxNG sc...
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: relaxng
2.6.30
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-09 08:59 UTC by Jan-Christoph Bornschlegel
Modified: 2019-01-30 10:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jan-Christoph Bornschlegel 2008-04-09 08:59:18 UTC
Please describe the problem:
See https://bugzilla.novell.com/show_bug.cgi?id=378240


Steps to reproduce:
1. bnc378240 provides a complete testcase
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Daniel Veillard 2008-05-12 13:20:46 UTC
> The changes validate with xmllint and jing, can be translated successfully by
> trang but fail validation using the perl module XML::LibXML.

  I don't see any .rng or .xml provided.
If xmllint validates it, why is this a libxml2 problem and not an
XML::LibXML one ?
Please see http://xmlsoft.org/bugs.html to get an insight on how to 
report libxml2 bugs, i really needed reproducer with xmllint or
a standalone C test, and all associated data,

  sorry missing needed informations,

Daniel
Comment 2 Jan-Christoph Bornschlegel 2008-05-13 12:20:35 UTC
Hi Daniel,

I wrote a small test case script and packed it all together in an archive which I couldn't upload here, so I reported the bug in Novell Bugzilla and posted a link to bug no. 378240 where you can find the test case in Attachment #1 [details].

There you'll find a rnc and rng file and also a xml file and a description how to validate the bug.

Thanks for your attention,
Jan
Comment 3 Pavol Rusnak 2008-05-22 15:52:59 UTC
This is probably the same bug as #400223.

Either look at the testcase there, or download https://bugzilla.novell.com/attachment.cgi?id=206970 unpack test:

$ xmllint  --relaxng complex.rng config.xml 
<?xml version="1.0"?>
<metadata>
  <productinfo name="PRODUCT_THEME">SuSE</productinfo>
  <productinfo name="ROOT_ON_CD">suse</productinfo>
</metadata>
config.xml:3: element productinfo: Relax-NG validity error : Element productinfo has extra content: text
Relax-NG validity error : Extra element productinfo in interleave
config.xml:3: element productinfo: Relax-NG validity error : Element metadata failed to validate content
config.xml fails to validate
Comment 4 Nick Wellnhofer 2019-01-30 10:46:28 UTC
Fixed in libxml2 2.9.9, probably by one of Nikolas Weibull's RelaxNG commits.