This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] psgml and XInclude elements in DocBook XML


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]