Validation errors on xi:include
Posted: Tue May 25, 2004 10:45 pm
When trying to validate the document, I get errors if the document contains xi:include.
For example:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//INVERA//DTD DocBook XML V4.2-Extension//EN"
"http://ourDocBook.dtd">
<chapter id="ch-xml-dtd" xmlns:xi="http://www.w3.org/2003/XInclude">
<title>Documentation Type Definitions</title>
<para/>
<xi:include href="dtd.xml"/>
<xi:include href="xml-doc-validation.xml"/>
</chapter>
The errors:
Attribute "xmlns:xi" must be declared for element type "chapter".
Element type "xi:include" must be declared.
Unexpected element "xi:include". The content of the parent element type must match "(beginpage?,chapterinfo?, ...
For example:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//INVERA//DTD DocBook XML V4.2-Extension//EN"
"http://ourDocBook.dtd">
<chapter id="ch-xml-dtd" xmlns:xi="http://www.w3.org/2003/XInclude">
<title>Documentation Type Definitions</title>
<para/>
<xi:include href="dtd.xml"/>
<xi:include href="xml-doc-validation.xml"/>
</chapter>
The errors:
Attribute "xmlns:xi" must be declared for element type "chapter".
Element type "xi:include" must be declared.
Unexpected element "xi:include". The content of the parent element type must match "(beginpage?,chapterinfo?, ...