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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: 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
                                            email: bobs@sco.com

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