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 129969 - xinclude 2003, fallback with include
xinclude 2003, fallback with include
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: William M. Brack
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2003-12-24 20:43 UTC by Oleg Paraschenko
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Oleg Paraschenko 2003-12-24 20:43:49 UTC
Code is from CVS, dated by 24 December 2003.

Source XML document:

----- <document.xml>
<?xml version='1.0'?>
<div>
 <xi:include href="example.txt" parse="text"
xmlns:xi="http://www.w3.org/2003/XInclude">
  <xi:fallback>
   <xi:include href="fallback-example.txt" parse="text">
    <xi:fallback><a href="mailto:bob@example.org">Report
error</a></xi:fallback>
   </xi:include>
  </xi:fallback>
 </xi:include>
</div>
----- </document.xml>

When neither example.txt nor fallback-example.txt are available, the result
should be:

----- <expected>
<?xml version='1.0'?>
<div>
 <a href="mailto:bob@example.org">Report error</a>
</div>
----- </expected>

but actual result is:

----- <result>
<?xml version="1.0"?>
<div>
 
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="fallback-example.txt" parse="text">
    <xi:fallback>
     <a href="mailto:bob@example.org">Report error</a>
    </xi:fallback>
   </xi:include>
  
</div>
----- </result>

Also, there are no error messages produced.
Comment 1 William M. Brack 2004-01-02 15:02:16 UTC
Fixed in CVS (enhancement to xinclude.c).  Thanks for the report!

Bill
Comment 2 Oleg Paraschenko 2004-01-03 15:35:59 UTC
Thanks, fixed.