[xml/sgml-pkgs] Bug#298126: db2latex-xsl: simplesect created at wrong level of nesting

Michael Wiedmann Michael Wiedmann <mw@miwie.in-berlin.de>, 298126@bugs.debian.org
Sat, 5 Mar 2005 12:26:40 +0100


* Roland Stigge <stigge@antcom.de> wrote [050304 22:49]:

> simplesects seem to be created at the wrong level of nesting. They should
> be included in the surrounding section level. Instead, they break out of
> that and are created at a higher level.

The following is a workaround (before being fixed upstream - which can
last a long time...):

- Use <section> instead of <sect1>. The db2latex templates renders
  this correctly.

A more complicated solution could be (though not useful as a genaral
solution): 

- Override the template 
  "<xsl:template match="sect1|sect2|sect3|sect4|sect5"> 
  in "sections.mod.xsl" to:

  "<xsl:template match="sect1|sect2|sect3|sect4|sect5|simplesect">

  _and_ provide for an override "latex.mapping.xml" for the key
  "simplesect" outputting the TeX section you want.

Michael
-- 
mw@miwie.in-berlin.de                              http://www.miwie.org