OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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.Dirson@fr.alcove.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@debian.org)                        Développeur Debian


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]