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 310033 - Reporting Errors in Files Included with xinclude (xmllint)
Reporting Errors in Files Included with xinclude (xmllint)
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.x
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-11 15:56 UTC by Karl Eichwalder
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
including file (107 bytes, text/xml)
2005-07-11 15:56 UTC, Karl Eichwalder
Details
included file (15 bytes, text/xml)
2005-07-11 15:57 UTC, Karl Eichwalder
Details
the DTD (41 bytes, text/x-dtd)
2005-07-11 15:57 UTC, Karl Eichwalder
Details

Description Karl Eichwalder 2005-07-11 15:56:08 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:
Comment 1 Karl Eichwalder 2005-07-11 15:56:55 UTC
Created attachment 48961 [details]
including file
Comment 2 Karl Eichwalder 2005-07-11 15:57:22 UTC
Created attachment 48962 [details]
included file
Comment 3 Karl Eichwalder 2005-07-11 15:57:58 UTC
Created attachment 48963 [details]
the DTD
Comment 4 Daniel Veillard 2005-08-25 20:15:34 UTC
Okay, fixed in CVS, the code extraction the URI based from
the node got broken, but this affected only XInclude processing.

 thanks,

Daniel
Comment 5 Daniel Veillard 2005-09-05 09:02:02 UTC
This should be closed by release of libxml2-2.6.21,

  thanks,

Daniel