GNOME Bugzilla – Bug 310033
Reporting Errors in Files Included with xinclude (xmllint)
Last modified: 2009-08-15 18:40:50 UTC
Please describe the problem: If a validation error occurs in a file included with xinclude, the including file is printed instead of the included file as it worked with libxml2-2.6.17. With 2.6.17: xmllint --postvalid --xinclude ke.xml <?xml version="1.0"?> <!DOCTYPE a SYSTEM "k.dtd"> <a> <c> <x/> </c> </a> b.xml:1: element c: validity error : Element c was declared #PCDATA but contains non text nodes b.xml:2: element x: validity error : No declaration for element x Document ke.xml does not validate with 2.6.20 (it reports ke.xml): xmllint --postvalid --xinclude ke.xml <?xml version="1.0"?> <!DOCTYPE a SYSTEM "k.dtd"> <a> <c> <x/> </c> </a> ke.xml:1: element c: validity error : Element c was declared #PCDATA but contains non text nodes ke.xml:2: element x: validity error : No declaration for element x Document ke.xml does not validate I attach the test files; call them as follows: xmllint --postvalid --xinclude ke.xml Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 48961 [details] including file
Created attachment 48962 [details] included file
Created attachment 48963 [details] the DTD
Okay, fixed in CVS, the code extraction the URI based from the node got broken, but this affected only XInclude processing. thanks, Daniel
This should be closed by release of libxml2-2.6.21, thanks, Daniel