AW: [xml] Xinclude recursive fallback bug
- From: "Zlatkovic, Igor" <Igor Zlatkovic Dresdner-Bank com>
- To: 'Elliotte Rusty Harold' <elharo metalab unc edu>, xml gnome org
- Subject: AW: [xml] Xinclude recursive fallback bug
- Date: Wed, 21 May 2003 10:43:36 +0200
Using the latest version of xmllint --xinclude that I compiled today
(Thanks!) I noticed that it fails to properly process this document:
<?xml version='1.0'?>
<test>
<xi:include href="missing.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback><xi:include
href="simple.xml"/></xi:fallback></xi:include>
</test>
In particular, it does not resolve the second include element
inside the
fallback element. Instead it produces this document (modulo
however my
e-mail client wraps the long lines)
<?xml version='1.0'?>
<test>
<xi:include href="missing.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback><xi:include
href="simple.xml"/></xi:fallback></xi:include>
</test>
It should have found and processed the file simple.xml. In
the event it
couldn't find it should have thrown an error. The finished document
should not contain any include elements.
Yes, this seems to be a bug. W3C declares xi:fallback as:
<!ELEMENT xi:fallback ANY>
<!ATTLIST xi:fallback xmlns:xi CDATA
#FIXED "http://www.w3.org/2001/XInclude">
which means that it can contain anything. Another xinclude certainly belongs
into the group 'anything'.
Please log this in the bugzilla, so it won't end up forgotten.
Ciao,
Igor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]