[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: Is it possible to include markup in a general entity?
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 bobs@sagehill.net ----- Original Message ----- From: "Sam Steingold" <sds@gnu.org> To: "Bob Stayton" <bobs@sagehill.net> Cc: <docbook-apps@lists.oasis-open.org> 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? > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]