GNOME Bugzilla – Bug 129969
xinclude 2003, fallback with include
Last modified: 2009-08-15 18:40:50 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.
Fixed in CVS (enhancement to xinclude.c). Thanks for the report! Bill
Thanks, fixed.