No, those errors are from validating a DocBook 4 document with the DocBook 4 DTD that does not have xmlns attributes declared. DTDs don't know that xmlns is a special attribute, and treats it as if it were just another attribute name. Those xmlns attributes are on the book element, which is not replaced during the XInclude process.

One common solution is to put a xmlns:xi="..." declaration in each xi:include element's start tag, and omit the global declaration in the book element. It makes each XInclude a little more verbose, but then the xmlns attributes are consumed by the XInclude processor and are not present at post-validation time. If you don't want to modify the DTD to include xmlns attributes, then that's the only solution.

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Sam Steingold" <[email protected]>
To: "Bob Stayton" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, January 27, 2009 1:53 PM
Subject: Re: Is it possible to include markup in a general entity?


Bob Stayton wrote:

The namespace is not inherited from the root element of the importing document. This is true of XIncludes as well.

could this cause my errors too?
<http://article.gmane.org/gmane.text.docbook.apps/21004>
if yes, how do I fix that?





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to