GNOME Bugzilla – Bug 527090
libxml2 called from XML::LibXML perl module doesn't validate valid RelaxNG scheme
Last modified: 2019-01-30 10:46:28 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:
> 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
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
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
Fixed in libxml2 2.9.9, probably by one of Nikolas Weibull's RelaxNG commits.