Help with validation error in modular DocBook
Posted: Tue Mar 10, 2009 1:39 pm
I need to refactor a fairly large DocBook help system to modularize it. The examples for book and chapter files at http://www.ibm.com/developerworks/xml/l ... ters3.html would do what I need. I've started a simplified version of that example. However when I try the chapter wrapper (chap5 in the online example) I get this validation error:
F Xerces A DOCTYPE is not allowed in content.
Using DocBook version: 4.4. Here is code:
Book file:
Chapter wrapper file "chap1.xml":
Section file defined in chapter wrapper:
The online example uses an earlier version of DocBook, so I wonder if something changed and the my version doesn't support this way of modularizing content.
Any help, advice, link to newer resources much appreciated!
F Xerces A DOCTYPE is not allowed in content.
Using DocBook version: 4.4. Here is code:
Book file:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "file:///c:/docbook-xml-4.4/docbookx.dtd" [
<!ENTITY bookinfo SYSTEM "bookinfo.xml">
<!ENTITY preface SYSTEM "preface.xml">
<!ENTITY chap1 SYSTEM "chap1.xml">
]>
<book id="alm" lang="en">
&bookinfo;
&preface;
&chap1;
</book>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "file:///c:/docbook-xml-4.4/docbookx.dtd" [
<!ENTITY chap1_1 SYSTEM "admin/admin_basics.xml">
]>
<chapter id="ch1_Admin">
<title>System Administration & Configuration</title>
<para>BLAH BLAH BLAH</para>
&chap1_1;
</chapter>
Code: Select all
<sect1 id="admin_admin_basics">
<title>Administration Basics</title>
<para>BLAH BLAH BLAH</para>
</sect1>
Any help, advice, link to newer resources much appreciated!