Package: dblatex
Version: 0.2.8-2
Severity: normal
Tags: patch
Hi,
consider the following docbook xml input:
===========================================================
<abstract>
<title>Kurzbeschreibung</title>
<para>
Testpara
</para>
===========================================================
This leads to the following latex output:
===========================================================
% --------
% Abstract
% --------
\let\savabstractname=\abstractname
\def\abstractname{Kurzbeschreibung}\begin{abstract}
Kurzbeschreibung
Testpara
Testpara2
===========================================================
(See also the attached example input test.xml and output test.tex
files.)
I.e., the abstract title (if specified) is applied correctly, but
additionally inserted into the text. This can be fixed in abstract.xsl
as attached.
bye,
Roland
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-rc5-rt1 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dblatex depends on:
ii docbook-xml 4.5-5 standard XML documentation system,
ii ghostscript [gs-pd 8.61.dfsg.1~svn8187-3 The GPL Ghostscript PostScript/PDF
ii gs-gpl 8.61.dfsg.1~svn8187-3 Transitional package
ii imagemagick 7:6.2.4.5.dfsg1-2 Image manipulation programs
ii python 2.4.4-6 An interactive high-level object-o
ii python-support 0.7.6 automated rebuilding support for p
ii texlive 2007-13 TeX Live: A decent selection of th
ii texlive-extra-util 2007.dfsg.1-2 TeX Live: TeX auxiliary programs
ii texlive-lang-cyril 2007.dfsg.3-1 TeX Live: Cyrillic
ii texlive-latex-extr 2007.dfsg.1-1 TeX Live: LaTeX supplementary pack
ii texlive-math-extra 2007.dfsg.1-1 TeX Live: Advanced math typesettin
ii transfig 1:3.2.5-rel-3 Utilities for converting XFig figu
ii xsltproc 1.1.22-1 XSLT command line processor
Versions of packages dblatex recommends:
ii libxml2-utils 2.6.30.dfsg-3 XML utilities
-- no debconf information
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://nwalsh.com/docbook/xml/4.3/docbook.dtd">
<article lang="de">
<articleinfo>
<title>Testdocument</title>
<author>
<firstname>Roland</firstname>
<surname>Stigge</surname>
<email>[EMAIL PROTECTED]</email>
</author>
<pubdate>21 Jan 2008</pubdate>
<copyright>
<year>2008</year>
<holder>Roland Stigge</holder>
</copyright>
</articleinfo>
<abstract>
<title>Kurzbeschreibung</title>
<para>
Testpara
</para>
<para>
Testpara2
</para>
</abstract>
<sect1><title>SECT1TITLE</title>
<para>
Testpara...
</para>
</sect1>
</article>
% -----------------------------------------
% Autogenerated LaTeX file from XML DocBook
% -----------------------------------------
%%<params>
%%</params>
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{fancybox}
\usepackage{makeidx}
\usepackage[ngerman]{babel}
\usepackage{cmap}
\usepackage[hyperlink]{docbook}
\setuplocale{de}
\setupbabel{de}
\renewcommand{\DBKreleaseinfo}{}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\renewcommand{\DBKcopyright}{\noindent Copyright \textnormal{\copyright} 2008 Roland Stigge}
\renewcommand{\DBKpubdate}{21 Jan 2008}
\title{Testdocument}
\author{Roland Stigge}
\hypersetup{%
pdfcreator={DBLaTeX-0.2.8-2},%
pdftitle={Testdocument},%
pdfauthor={Roland Stigge}%
}
% ------------------
% Collaborators
% ------------------
\renewcommand{\DBKindexation}{
\begin{DBKindtable}
\DBKinditem{\writtenby}{Roland Stigge}
\end{DBKindtable}
}
\makeindex
\makeglossary
\begin{document}
\frontmatter
\maketitle
\tableofcontents
% --------
% Abstract
% --------
\let\savabstractname=\abstractname
\def\abstractname{Kurzbeschreibung}\begin{abstract}
Kurzbeschreibung
Testpara
Testpara2
\end{abstract}
\let\abstractname=\savabstractname
\mainmatter
\section{SECT1TITLE}
Testpara...
\end{document}
diff -ruN dblatex-0.2.8.orig/xsl/abstract.xsl dblatex-0.2.8/xsl/abstract.xsl
--- dblatex-0.2.8.orig/xsl/abstract.xsl 2007-02-24 19:17:23.000000000 +0100
+++ dblatex-0.2.8/xsl/abstract.xsl 2008-01-21 14:40:29.000000000 +0100
@@ -21,7 +21,7 @@
<xsl:text>}</xsl:text>
</xsl:if>
<xsl:text>\begin{abstract} </xsl:text>
- <xsl:apply-templates/>
+ <xsl:apply-templates select="*[not(self::title)]"/>
<xsl:text> \end{abstract} </xsl:text>
<xsl:if test="title">
<xsl:text>\let\abstractname=\savabstractname </xsl:text>