Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.8.0
-
None
-
None
-
Java 1.5.0
Windows XP SP 2
Description
When the file foo.xml is parsed Xerces should recognize the include element in the "http://www.w3.org/2001/XInclude" namespace without any declaration of that element in the DTD or schema associated with foo.xml. The schema developer should not be forced to declare the xi:include element in every type definition where he wants to include other file just as he can refer external entities without any special declaration in the type definition of the including element. Example:
foo.xml:
<!DOCTYPE root [
<!ELEMENT root (child)>
<!ELEMENT child EMPTY>
]>
<root>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bar.xml"/>
</root>
bar.xml:
<child/>