Re: Sect tags



Karl Eichwalder <keichwa@gmx.net> writes:

> I'll work out a more general solution.

The test document:

<!DOCTYPE book PUBLIC "-//GNOME//DTD DocBook Customization V2.0//EN">
<book>

 <chapter>
  <title></title>
  <para></para>

  <sect1 id="k1">
   <title></title>
   <para>This section is okay.</para>
  </sect1>

  <sect1>
   <title></title>
   <para>Here the ID is missing ;-)</para>
  </sect1>

 </chapter>

</book>

The "Customization DTD":

<!-- gnome-db.dtd
     Karl Eichwalder <ke@suse.de>
     Copyright (C) 2000 SuSE GmbH
     GPL
-->
<!ENTITY % sect1.attlist "IGNORE">

<!ENTITY % intermod.redecl.module "INCLUDE">
<!-- ENTITY % rdbmods SYSTEM "gnome-ext.dtd" -->
<!ENTITY % rdbmods PUBLIC
           "-//GNOME//DTD DocBook Redeclarations V2.0//EN">

<!ENTITY % local.sect1.attrib "Id ID #REQUIRED">

<!ENTITY % DocBookDTD PUBLIC
           "-//OASIS//DTD DocBook V4.1//EN"   >

%DocBookDTD;

<!-- gnome-db.dtd ends here -->


The extension:

<!-- gnome-ext.dtd
     Karl Eichwalder <ke@suse.de>
     Copyright (C) 2000 SuSE GmbH
     GPL
-->

<!ATTLIST Sect1
		--
		Renderas: Indicates the format in which the heading should
		appear
		--
		Renderas	(Sect2
				|Sect3
				|Sect4
				|Sect5)		#IMPLIED
		%label.attrib;
		%status.attrib;
		
	%lang.attrib;
	%remap.attrib;
	--Role is included explicitly on each element--
	%xreflabel.attrib;
	%revisionflag.attrib;
	%effectivity.attrib;
	%local.common.attrib;
	%local.sect1.attrib;
>

<!-- gnome-ext.dtd ends here -->


The additional CATALOG entries:

PUBLIC "-//GNOME//DTD DocBook Customization V2.0//EN" "gnome-db.dtd"
PUBLIC "-//GNOME//DTD DocBook Redeclarations V2.0//EN" "gnome-ext.dtd"

-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

The same has to be done for the other sect and chapter elements.  It's
just a proposal -- if you are not inclined to use it, I'll not be angry
with you ;)

-- 
work : ke@suse.de                          |          ------    ,__o
     : http://www.suse.de/~ke/             |         ------   _-\_<,
home : keichwa@gmx.net                     |        ------   (*)/'(*)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]