On Mon, Apr 07, 2003 at 10:04:50AM +0200, Steinar Bang wrote:
> The problem is that <xi:include> is not a legal element at that point,
> according to the DocBook XML 4.2 DTD. Is there a non-intrusive way of
> adding this element to the DTD in the appropriate way? Ie. a way that
> doesn't involve changing the DTD?
Well, "you could change the DTD in a non-intrusive way" with by adding
a local DTD part to your document, that would make this element valid.
Since programlisting itself does not have a hook, but mostly contains
%para.char.mix;, you can just add to the latter, which BTW also allows
the xinclude element in many other places. The following is untested,
but you get the idea.
<!DOCTYPE .... [
<!ELEMENT xi:include ....>
<!ATTRIBUTES xi:include ....>
<!ENTITY % local.para.char.mix "|xi:include">
]>
Regards,
--
Yann Dirson <> http://www.alcove.com/
Technical support manager Responsable de l'assistance technique
Senior Free-Software Consultant Consultant senior en Logiciels Libres
Debian developer () D憝eloppeur Debian