This is the mail archive of the mailing list for the DocBook project.

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] adding new element to divcomponent.mix

On Tue, May 27, 2003 at 10:17:44AM +0200, Myriam Delperier wrote:
> hi,
> i'm trying to make a dtd based on docbook.
> my own dtd contains the line :
> <!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "docbookx.dtd">
> %DocBookDTD;
> i've found some documentation to add elements in *.class entities, but i'd
> like now to create an element into the divcomponent.mix entity, but i can't
> find a way to do it
> does anyone have an idea?

Most of the parameter entities in the DTD have a
"local.*" placeholder that is declared as empty in
the DTD.  It is meant to be overridden in a DTD customization
layer when you need to add elements to a parameter entity.
The trick is to include a "|" at the beginning of the
entity declaration so it merges smoothly with the rest of
the divcomponent.mix entity. For example:

<!ENTITY % local.divcomponent.mix "| mynewelement">


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887

To unsubscribe, e-mail:
For additional commands, e-mail:

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