Chapter 6. The Common Module

The common module contains functions that are shared between the HTML and print stylesheets. Functions in the common module are DTD-specific, i.e., they generally rely implicitly or explicitly on the structure of the DocBook DTD to function properly.

Change Log

2000-01-27  Norman Walsh  <ndw@nwalsh.com>

	* dbl1de.ent, dbl1ru.ent: Fixed l10ns

2000-01-14  Norman Walsh  <ndw@nwalsh.com>

	* dbl10n.dsl: Added Greek and Brazilian Portuguese

	* dbl10n.dsl, dbl1ca.dsl, dbl1ca.ent, dbl1cs.dsl, dbl1cs.ent, dbl1da.dsl, dbl1da.ent, dbl1de.dsl, dbl1de.ent, dbl1en.dsl, dbl1en.ent, dbl1es.dsl, dbl1es.ent, dbl1fi.dsl, dbl1fi.ent, dbl1fr.dsl, dbl1fr.ent, dbl1it.dsl, dbl1it.ent, dbl1ja.dsl, dbl1ja.ent, dbl1nl.dsl, dbl1nl.ent, dbl1no.dsl, dbl1no.ent, dbl1pl.dsl, dbl1pl.ent, dbl1pt.dsl, dbl1pt.ent, dbl1ro.dsl, dbl1ro.ent, dbl1ru.dsl, dbl1ru.ent, dbl1sk.dsl, dbl1sk.ent, dbl1sv.dsl, dbl1sv.ent: 
	Added navigation terms

	* dbl1ca.dsl, dbl1cs.dsl, dbl1da.dsl, dbl1de.dsl, dbl1el.dsl, dbl1en.dsl, dbl1es.dsl, dbl1fi.dsl, dbl1fr.dsl, dbl1it.dsl, dbl1ja.dsl, dbl1nl.dsl, dbl1no.dsl, dbl1pl.dsl, dbl1pt.dsl, dbl1ptbr.dsl, dbl1ro.dsl, dbl1ru.dsl, dbl1sk.dsl, dbl1sv.dsl: 
	Made into complete document for common localization

	* dbl1ca.dsl, dbl1cs.dsl, dbl1da.dsl, dbl1de.dsl, dbl1en.dsl, dbl1es.dsl, dbl1fi.dsl, dbl1fr.dsl, dbl1it.dsl, dbl1ja.dsl, dbl1nl.dsl, dbl1no.dsl, dbl1pl.dsl, dbl1pt.dsl, dbl1ro.dsl, dbl1ru.dsl, dbl1sk.dsl, dbl1sv.dsl: 
	Added RevisedBy

	* dbl1ca.ent, dbl1cs.ent, dbl1da.ent, dbl1de.ent, dbl1en.ent, dbl1es.ent, dbl1fi.ent, dbl1fr.ent, dbl1it.ent, dbl1ja.ent, dbl1nl.ent, dbl1no.ent, dbl1pl.ent, dbl1pt.ent, dbl1ro.ent, dbl1ru.ent, dbl1sk.ent, dbl1sv.ent: 
	Added RevisedBy (and possibly fixed typos)

	* dbl1el.dsl, dbl1el.ent, dbl1ptbr.dsl, dbl1ptbr.ent: New file.

	* dbl1null.dsl: New file.

1999-12-16  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Make the default number for isolated components 1 instead of 0; fix qandadiv numbering in nested sections

1999-11-18  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Replace xref-title-mode with title-sosofo-mode; these aren't xrefs!

	* dbl1nl.dsl, dbl1nl.ent: NL updates

1999-10-21  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Always find ancestor relative to author in author-list-string, not the current node

1999-10-19  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Move bibio stuff to common; add citetitle

1999-09-25  Norman Walsh  <ndw@nwalsh.com>

	* dbl1fr.dsl, dbl1fr.ent: Support for Question/Answer gentext

1999-09-03  Norman Walsh  <ndw@nwalsh.com>

	* dbl10n.dsl, dbl1ca.dsl, dbl1ja.ent: Localization updates

	* dbl1cs.dsl, dbl1cs.ent, dbl1sk.dsl, dbl1sk.ent: New file.

	* dbtable.dsl: Colspec now correctly handles missing colwidth when some colspecs have relative widths

1999-08-25  Norman Walsh  <ndw@nwalsh.com>

	* dbl1ca.dsl, dbl1ca.ent, dbl1de.ent, dbl1es.ent: L10n updates

1999-07-30  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Fixed qandaset labelling bug in the number case

	* dbl10n.dsl: Fixed case problem with LANG attribute

1999-07-02  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added support for honorific-punctuation parameter

	* dbl1fr.dsl, dbl1fr.ent, dbl1pl.dsl, dbl1ro.dsl: General improvements; removed 8-bit characters; fixed french/polish redeclaration bug

1999-06-06  Norman Walsh  <ndw@nwalsh.com>

	* dbl10n.dsl, dbl1ca.dsl, dbl1ca.ent: Added support for Catalan

1999-04-20  Norman Walsh  <ndw@nwalsh.com>

	* dbl1da.dsl, dbl1da.ent: Gentext bug fixes

1999-04-13  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Support TITLE directly on ARTICLE (outside ARTHEADER)

1999-03-31  Norman Walsh  <ndw@nwalsh.com>

	* Oldversion.sgm: Changed public identifiers from DocBook V3.0 to V3.1

1999-03-17  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added common function to calculate question/answer label

	* dbl1en.dsl: Added question/answer label title separator

1999-03-06  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Handled EDITORs in an AUTHORGROUP

	* dbl1de.dsl: Added support for SECTION

1999-03-02  Norman Walsh  <ndw@nwalsh.com>

	* dbl1ja.dsl: Removed element names missing from the .ent file

	* dbl1ja.ent: Added semicolons to Unicode character references

1999-03-01  Norman Walsh  <ndw@nwalsh.com>

	* dbl10n.dsl, dbl1ja.dsl, dbl1ja.ent: Added Japanese localization

	* dbl1de.dsl: Patches suggested by Joerg Wittenberger

	* dbl1en.dsl, dbl1en.ent: Added names for Question and Answer

1999-02-26  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added code for calculating TERM lengths

1999-02-22  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Autolabel links to SIMPLSECTs

	* dbl10n.dsl: Added Romanian
	Added gentext-start-nested-quote and gentext-end-nested-quote

	* dbl1da.dsl, dbl1es.dsl, dbl1fi.dsl, dbl1fr.dsl, dbl1it.dsl, dbl1nl.dsl, dbl1no.dsl, dbl1pl.dsl, dbl1pt.dsl, dbl1ru.dsl, dbl1sv.dsl: 
	Added nested quotes

	* dbl1de.dsl: Several updates; added nested quotes

	* dbl1de.ent: Updated a number of words

	* dbl1en.dsl: Added nested quotes; added gentext for SIMPLESECT

	* dbl1nl.ent: Fixed 'Published'

	* dbl1ro.dsl, dbl1ro.ent: New file.

1999-02-01  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added autolabel function for Abstracts

	* dbl1en.ent: Changed LegalNotice entity

1999-01-17  Norman Walsh  <ndw@nwalsh.com>

	* dbl1da.ent: Changed Section as per suggestion from Peter Toft.

1999-01-13  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added support for Section and Colophon (new in 3.1).
	Removed $section-hlevel$, use SECTLEVEL instead.

	* dbl10n.dsl, dbl1da.dsl, dbl1de.dsl, dbl1no.dsl, dbl1sv.dsl: 
	Fixed country codes.

	* dbl1en.dsl: Fixed country codes.  Added support for Section and
	Colophon.

	* dbl1en.ent: Added support for Colophon

1998-12-22  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Only label sections in the preface if
	%label-preface-sections% is true.

1998-12-16  Norman Walsh  <ndw@nwalsh.com>

	* dbl1fi.ent: Changed Bibliography.

1998-12-14  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added (data-of) function.  It works like (data) except that
	the content of INDEXTERMs is suppressed.

	* dbcommon.dsl: Added orderedlist-listitem-label and orderedlist-listitem-label-recursive
	to find the item number of a LISTITEM in an ORDEREDLIST. The
	recursive form gives nested labels (e.g., 2.1.3.) where the
	non-recursive form simply gives the label (e.g., 3.)

	* dbl1en.dsl: Added intra-label-sep for LISTITEM

1998-12-04  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added $section-hlevel$, a simple test for depth based on GI

	* dbl10n.dsl: Left 'fi' out of lot-title by mistake

1998-11-30  Norman Walsh  <ndw@nwalsh.com>

	* dbl10n.dsl: Added Finnish

	* dbl1fi.dsl, dbl1fi.ent: New file.

1998-11-25  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl, dbl1en.dsl, dbl1en.ent: A RefSynopsisDiv has a default title

1998-11-19  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl, dbtable.dsl: Removed version number; see ChangeLog for lib/dblib.dsl

	* dbl1en.dsl, dbl1en.ent: Added support for RefEntry and RefSect1-3

1998-11-05  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Give REFSYNOPSISDIV a SECTLEVEL and element-label;
	(same as a REFSECT1).

	* dbcommon.dsl: Version 1.23 released.

	* dbl1en.dsl: Added prefix to the 'Unexpected element name' message.
	Too many times I've gone looking for validation errors
	as the result of this message!

	* dbtable.dsl: Fixed subtle bug in the functions that search for
	COLNAME and SPANNAME.  (normalize takes a _lowercase_
	argument)

1998-11-03  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl, dbtable.dsl: Version 1.22 released.

1998-11-02  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Version 1.21 created (not for release, just
	to checkpoint another project).

1998-11-01  Norman Walsh  <ndw@nwalsh.com>

	* dbl1it.dsl, dbl1it.ent: Fixes

	* dbtable.dsl: Moved cell-colsep and cell-rowsep back into the print version.
	They only apply there.

1998-10-30  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Version 1.20 released.

	* dbcommon.dsl: New indirect referencing scheme

	* dbl10n.dsl: New languages and new indirect reference function

	* dbl1da.dsl, dbl1da.ent, dbl1sv.dsl, dbl1sv.ent: New file.

	* dbl1de.dsl, dbl1en.dsl, dbl1es.dsl, dbl1fr.dsl, dbl1it.dsl, dbl1nl.dsl, dbl1no.dsl, dbl1pl.dsl, dbl1pt.dsl, dbl1ru.dsl: 
	New indirect reference functionality

	* dbl1en.dsl: Fixed typo.

	* dbl1ru.dsl, dbl1ru.ent: Updates by Ilia Kouznetsov

	* dbl1ru.ent: Fixed typo

	* dbl1sv.dsl: Added a couple of translations that had
	been missing.

	* dbtable.dsl: For the purposes of finding an ancestor tgroup, consider
	the current node a candidate.

1998-10-29  Norman Walsh  <ndw@nwalsh.com>

	* dbl1es.ent: Corrections

1998-10-22  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added indexdiv-autolabel to suppress automatic
	numbering of indexdivs

	* dbl1en.dsl: Added an XREF format for Sidebars

	* dbl1en.ent: Added 'sidebar', changed 'Sidebar'.

	* dbl1fr.ent: Fixed a number of erroneous entries

1998-10-20  Norman Walsh  <ndw@nwalsh.com>

	* dbl10n.dsl: Fixed nasty SGML/XML bug. Localization functions were
	explicitly folding ginames to upper case instead of
	(normalizing) them.

	* dbl1it.dsl: Fixed a couple of little bugs in the chapter and section
	references.

1998-10-19  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Version 1.19 is released.

	* dbcommon.dsl: Fixed bug in appendix numbering. Added support for continuation
	in ordered lists.

	* dbl10n.dsl, dbl1de.dsl, dbl1de.ent, dbl1en.dsl, dbl1en.ent, dbl1es.dsl, dbl1es.ent, dbl1fr.dsl, dbl1fr.ent, dbl1it.dsl, dbl1it.ent, dbl1nl.dsl, dbl1nl.ent, dbl1no.dsl, dbl1no.ent, dbl1pl.dsl, dbl1pl.ent, dbl1pt.dsl, dbl1pt.ent, dbl1ru.dsl, dbl1ru.ent: 
	Reworked localizations; added support for Spanish, Italian, Dutch, and Portuguese.

	* dbtable.dsl: Added "support" for EntryTbl. It'll only work in the HTML
	back end. Support here means simply that an ancestor
	ENTRYTBL is equivalent to an ancestor TGROUP for some
	inherited properties.

1998-09-18  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Version 1.18 released (really!).

	* dbcommon.dsl: Added support for OTHERNAME in AUTHOR.
	Added component-number-restart-list.
	Added component-number-ignore-list.
	Added component-number-sibling-list.
	Reworked/reordered auto labeling functions
	to use new component-numbering and to use
	the (label-number-format) function from
	the localization layer.

	* dbl10n.dsl: Added (label-number-format).

	* dbl1de.dsl: Completely reworked.  All translation info is now in
	dbl1dege.ent.  There are dsssl definitions for
	each element, making customization easier.

	* dbl1de.dsl, dbl1en.dsl: Fixed typos

	* dbl1de.ent, dbl1en.ent: New file.

	* dbl1en.dsl: Completely reworked.  All translation info is now in
	dbl1usen.ent.  There are dsssl definitions for
	each element, making customization easier.

	* dbl1fr.dsl, dbl1no.dsl, dbl1pl.dsl, dbl1ru.dsl: Added (label-number-format)

1998-09-17  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl, dbtable.dsl: Version 1.17 released.

	* dbl1en.dsl: Added gentext names and label/title seperators for
	SEEIE and SEEALSOIE.

	* dbtable.dsl: Most of the element names were still un(normalized).

1998-09-16  Norman Walsh  <ndw@nwalsh.com>

	* Oldversion.sgm: Renamed version.sgm; made proper SGML document

	* dbcommon.dsl: Added (normalize) around a few strings.
	Fixed REFERENCE numbering.

	* dbcommon.dsl: Version 1.15 released

	* dbcommon.dsl: Version 1.16 released

	* dbl1de.dsl, dbl1no.dsl: Replaced 8bit char with Unicode character reference.

1998-09-10  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added optional parameter to auto-xref for better
	OLINK support.

	* dbcommon.dsl: Version 1.14 released.

	* dbl1en.dsl: Added ARTICLE name

1998-09-09  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Reworked element-title and element-title-sosofo.
	Warning: backwards incompatibility: element-title now
	returns the title node, not the (data) of the title
	node.  Added element-title-string, which returns the
	(data) of the title node.
	
	(olink-resource-title) now "supports" entities that
	do not have a public identifier, it returns "".

	* dbl1en.dsl: Added element names for "Book" and "Set"

1998-09-04  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added bibentry-number

	* dbcommon.dsl: Added rudimentary support for OLINKs

1998-09-03  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Added support for bibliography filtering

	* dbl10n.dsl: Added support for Polish

	* dbl1pl.dsl: New file.

1998-09-02  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Version 1.13 released

	* dbcommon.dsl, dbl1en.dsl: Added support for SETINDEX

1998-08-28  Norman Walsh  <ndw@nwalsh.com>

	* dbcommon.dsl: Version 1.12 released

	* dbtable.dsl: Fixed bug in overhang-skip; would crash if it ran out of columns

1998-08-24  Norman Walsh  <ndw@nwalsh.com>

	* dbl1en.dsl: Changed Endnotes: to Notes: