I have the following DocBook structure in my book.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
[ <!-- -->
<!ENTITY bookinfo SYSTEM "bookinfo.sgm">
<!ENTITY abstract SYSTEM "abstract.sgm">
<!ENTITY chap1 SYSTEM "chap1.sgm">
<!ENTITY biblio SYSTEM "biblio.sgm">
<!ENTITY the_author "Author Name">
] >
<book>
<title>Book title</title>
&bookinfo;
<abstract>
<para>Abstract.</para>
</abstract>
&chap1;
&biblio;
</book>
When I am running xmllint -valid book.xml
from cmd, I am getting this error:
book.xml:18: element book: validity error : Element book content does not follow the DTD, expecting ((title , subtitle? , titleabbrev?)? , bookinfo? , (dedication | toc | lot | glossary | bibliography | preface | chapter | reference | part | article | appendix | index | setindex | colophon)*), got (title CDATA abstract CDATA CDATA )
Why does xmllint give me this error? Seems everything is OK...