atom feed7 messages in org.oasis-open.lists.docbook-appsRe: [docbook-apps] Xmllint error
FromSent OnAttachments
Kenneth JohanssonOct 7, 2003 2:25 am 
Patrick EisenacherOct 7, 2003 2:49 am 
Tobias ReifOct 7, 2003 3:05 am 
Daniel VeillardOct 7, 2003 3:21 am 
Kenneth JohanssonOct 7, 2003 3:44 am 
Daniel VeillardOct 7, 2003 3:51 am 
Jeff BealOct 7, 2003 5:38 am 
Subject:Re: [docbook-apps] Xmllint error
From:Tobias Reif (tobi@pinkjuice.com)
Date:Oct 7, 2003 3:05:47 am
List:org.oasis-open.lists.docbook-apps

Patrick Eisenacher wrote:

your module is not a valid docbook document. Therefore you can not include it via xinclude. It's missing the docbook header line.

Just so that there's no misunderstanding:

XML documents can be valid in respect to the DocBook schemas without having a DTD doctype declaration.

That's why xmllint doesn't know where to lookup the definition of the module's first element: chapter. Add a line like the following to your module:

<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

If you want to include modules that are not valid docbook, but just contain the actual elements that shall be pasted into your mother document, then use entities.

An XML document (eg a chapter) can very well be a valid DocBook document, no matter if it's included in an other document via an entity reference or not.

Tobi