t/40reader.t .............................. 1/100 test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'partNum': [facet 'pattern'] The value '' is not accepted by the pattern '\d{3}-[A-Z]{2}'. test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'partNum': '' is not a valid value of the atomic type 'SKU'. test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'shipBy': [facet 'enumeration'] The value '' is not an element of the set {'air', 'land', 'any'}. test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'shipBy': '' is not a valid value of the local atomic type. # Looks like you planned 100 tests but ran 89. # Looks like your test exited with 2 just after 89. t/40reader.t .............................. Dubious, test returned 2 (wstat 512, 0x200) Failed 11/100 subtests Upstream bug for XML-LibXML: https://rt.cpan.org/Public/Bug/Display.html?id=114638 Upstream bug for libxml2: https://bugzilla.gnome.org/show_bug.cgi?id=766834 Do you still need build log and the like?
Created attachment 438636 [details, diff] 0001-Fix-attribute-decoding-during-XML-schema-validation.patch This patch (from the libxml2 bug) is supposed to fix the issue. I'm testing it now.
(In reply to Paolo Pedroni from comment #1) > Created attachment 438636 [details, diff] [details, diff] > 0001-Fix-attribute-decoding-during-XML-schema-validation.patch > > This patch (from the libxml2 bug) is supposed to fix the issue. I'm testing > it now. It does fix the bug.
Note: I just pushed > https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb9676570dbba50c007e075d84ec2a405006a248 Which bumps XML-LibXML to 2.12.600, which contains a work-around for the XSD Schema regression in 2.9.4 However, libxml2 in tree is still broken here and still will need independent fixing. ( As are all versions of dev-perl/XML-LibXML prior to 2.12.600 with this version )
(In reply to Kent Fredric (IRC: kent\n) from comment #3) > libxml2 in tree is still broken here and still will need > independent fixing. dev-libs/libxml2-2.9.4 also breaks schema validation with xmlstarlet. I just opened PR 3018 with the upstream fix, the same as in comment #2.
Patch for this issue has been pushed to 2.9.4-r2. Please check if it does fix your problem.
(In reply to Gilles Dartiguelongue from comment #5) > Patch for this issue has been pushed to 2.9.4-r2. Please check if it does > fix your problem. dev-libs/libxml2-2.9.4-r2 does fix the regression for XSD schema validation with app-text/xmlstarlet-1.6.1 mentioned in comment #4.
I don't use the affected package anymore, but a quick check shows that everything works, now.
Thanks for the feedback. Closing then.