On Sat, 20 Oct 2001, Jirka Kosek wrote:
> If you want to customize DTD it is always better to create customization
> layer than to directly edit existing DTD. With this approach it is much
> more easy to upgrade to new version DocBook which is used as a base for
> your DTD. The customization DTD might look like:
>
> <!-- PHPBook DTD 1.0 (based on DocBook 4.1.2) -->
> <!ENTITY % docbook PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
> '/path/to/local/copy/of/docbookx.dtd'>
> %docbook;
> <!ELEMENT funcprototype %ho; (funcdef, (void | varargs | (optional |
> paramdef)+))>
> <!ELEMENT optional %hh; (paramdef+ | %cptr.char.mix;)*>
> <!ELEMENT parameter %hh; (optional | %smallcptr.char.mix;)*>
>
> In PHPBook documents you then would use this DTD instead of standard
> DocBook DTD.
Thanks. I never understood that it's so easy...
> I think that change to DocBook DTD which you propose would be useful in
> general. I suggest you to post this request as RFE for DocBook DTD at
> the sourceforge pages. DocBook Technical Commitee has meatings each
> month, so they should discuss it quite early.
Done.
-- Jouni