This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Problem redeclaring tables in docbook customization layer
- From: Bob Stayton <bobs at caldera dot com>
- To: Anahi Olives/UPC <Anahi dot Olives at upc dot es>, docbook at lists dot oasis-open dot org
- Date: Wed, 11 Dec 2002 11:32:08 -0800
- Subject: Re: DOCBOOK: Problem redeclaring tables in docbook customization layer
- References: <OF2F551FB4.F09DA94D-ONC1256C8C.004795E8@upc.es>
On Wed, Dec 11, 2002 at 02:02:21PM +0100, Anahi Olives/UPC wrote:
> Hi,
>
> I'm writing a customization layer for docbook, but I don't know how to
> redeclare tables. I'm starting now with xml and I've understand how to
> ignore, modify, remove elements, mixtures and classes, but with the
> calstblx.dtd file I don't know what do I have to do and where do I have to
> place the modifications. I only want to make these changes:
>
> <!ENTITY % tbl.table-main.mdl "(tgroup+|graphic+)">
> I want that appears this:
> <!ENTITY % tbl.table-main.mdl "(tgroup+|imageobject+)">
>
>
> <!ENTITY % tbl.entry.mdl "(para|warning|caution|note|legend|%paracon;)*">
> I want that appears this:
> <!ENTITY % tbl.entry.mdl "(para|%paracon;)*">
>
> I have my customization layer (dtd file), and the mod files rdbpool
> (redeclare pool mixtures), rdbhier (redeclare hierarchy mixtures), rdbhier2
> (redeclare hierarchy content model entities), rdbhier3 (redeclare hierarchy
> elements) and rdbinter (redeclare pool elements).
> Please, can anyone explain me in detail what do I have to do?
You are in luck. Since all your changes can be done with
changes to existing parameter entities, you only have to
declare them before they are declared in the calstblx
module. That module is pulled in by the dbpoolx module.
You can put your declarations right in your main
customization driver file anywhere above where the dbpoolx
module is pulled in.
If this is the only change you want, then your entire
customization layer could consist of just this:
<!ENTITY % tbl.table-main.mdl "(tgroup+|imageobject+)">
<!ENTITY % tbl.entry.mdl "(para|%paracon;)*">
<!ENTITY % docbook PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
"docbookx.dtd">
%docbook;
--
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