[xml/sgml-pkgs] Bug#243580: libxml2: xincludes repeat fallback
Ryan Nowakowski
Ryan Nowakowski <ryan.nowakowski@s1.com>, 243580@bugs.debian.org
Tue, 13 Apr 2004 15:57:59 -0500
Package: libxml2
Version: 2.6.8-1
Severity: important
Tags: sid
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.4-1-686
Locale: LANG=en_US, LC_CTYPE=en_US
Versions of packages libxml2 depends on:
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii zlib1g 1:1.2.1-3 compression library - runtime
-- no debconf information
When running 'xmllint --xinclude' on a document with multiple non-nested
xincludes with fallbacks, the fallback gets repeated in the output.
a.xml:
<a>
<xi:include href="b.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>There is no b.xml ... </xi:fallback>
</xi:include>
<xi:include href="c.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>There is no c.xml ... </xi:fallback>
</xi:include>
</a>
xmllint --xinclude a.xml
I/O warning : failed to load external entity "b.xml"
I/O warning : failed to load external entity "c.xml"
I/O warning : failed to load external entity "c.xml"
<?xml version="1.0"?>
<a>
There is no b.xml ...
There is no c.xml ... There is no c.xml ...
</a>