This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] psgml and XInclude elements in DocBook XML
- From: Yann Dirson <ydirson at fr dot alcove dot com>
- To: Steinar Bang <sb at dod dot no>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 7 Apr 2003 10:24:24 +0200
- Subject: Re: [docbook-apps] psgml and XInclude elements in DocBook XML
- References: <87istq91i5.fsf@home.lan>
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 <Yann dot Dirson at fr dot alcove dot com> http://www.alcove.com/
Technical support manager Responsable de l'assistance technique
Senior Free-Software Consultant Consultant senior en Logiciels Libres
Debian developer (dirson at debian dot org) Développeur Debian
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org