Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.6.2
-
None
-
None
-
Windows XP, Java version 1.5.0-b64, using the XIncludeParserConfiguration parser configuration.
Description
Trying to validate the following document:
<!DOCTYPE book [
<!ELEMENT book (xi:include?, chapter)>
<!ELEMENT para (#PCDATA)>
<!ELEMENT chapter (xi:include)>
<!ELEMENT xi:include (#PCDATA) >
<!ATTLIST xi:include
xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude"
href CDATA #REQUIRED>
]>
<book>
<xi:include href="included.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<chapter>
<xi:include href="included.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</chapter>
</book>
with included.xml being:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE para [
<!ELEMENT para (#PCDATA)>
]>
<para>
Test.
</para>
both Xerces 2.6.2 and the latest CVS build give the error:
F Elements from namespace 'http://www.w3.org/2001/XInclude', other than 'fallback', are not allowed to be children of 'include' elements. However, 'include' was found. xerces-XInclude-bug.xml file:/F:/test/xerces-XInclude-bug.xml 13:85
This makes Docbook processing fail when XInclude is used in a similar way.
Regards,
George