This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] adding new element to divcomponent.mix
- From: Bob Stayton <bobs at sco dot com>
- To: Myriam Delperier <myriam dot delperier at ajlsm dot com>
- Cc: docbook at lists dot oasis-open dot org
- Date: Tue, 27 May 2003 01:46:23 -0700
- Subject: Re: [docbook] adding new element to divcomponent.mix
- References: <006a01c32428$73251e10$ae7ba8c0@TOURNY>
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
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org