This is the mail archive of the docbook@lists.oasis-open.org 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]

Re: ID req'd for table?


/ "Dombrowski, James" <James.Dombrowski@compuware.com> was heard to say:
| We are using DocBk XML V3.1.4 with a customization layer on top. Can someone
| tell me how to make the ID attribute "required" for tables? I've been able
| to accomplish this for other elements, but am having trouble determining
| where in the DTD to change this attribute for tables.

While it's highly non-obvious (and could be made much easier, but
we didn't add extra PEs to the CALS table model DTD because we don't
own it), adding this to your customization layer will work:

<!ENTITY % secur
	"%idreq.common.attrib;
	%tables.role.attrib;">

It has the unfortunate side-effect that it makes ID attributes
required on informaltables as well. Mumble. You might have to
edit a copy of calstblx.dtd and point to your copy if you need
more control.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | Everything the same; everything
http://www.oasis-open.org/docbook/ | distinct.
Chair, DocBook Technical Committee |

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