[xml/sgml-pkgs] Bug#283499: xsltproc: Generated TeX is wrong for variablelist

Mike Hommey Mike Hommey <mh@glandium.org>, 283499@bugs.debian.org
Wed, 9 Feb 2005 16:12:52 +0100


reassign 283499 db2latex-xsl
thanks

Hi,

This is hardly a bug in xsltproc, much more one in db2latex-xsl. I guess the
debian package is also subject to this bug, so i'll reassign there. 

Mike

On Mon, Nov 29, 2004 at 03:20:03PM +0200, Tapio Lehtonen <tale@iki.fi> wrote:
> Subject: xsltproc: Generated TeX is wrong for variablelist
> Package: xsltproc
> Version: 1.1.8-5
> Severity: minor
> 
> Running xsltproc on attached Test.xml produces Test.tex that is not
> valid. The variablelist is wrong and TeX prosessors barf. Making
> HTML works.
> 
> It is only the <variablelist> that fails to work, otherwise the book
> I'm making formats OK to PDF. 
> 
> ls -l
> 
> -rw-rw-r--  1 tale tale   478 2004-11-29 10:58 Test.aux
> -rw-rw-r--  1 tale tale  2596 2004-11-29 10:58 Test.dvi
> -rw-rw-r--  1 tale tale     0 2004-11-29 10:58 Test.glo
> -rw-rw-r--  1 tale tale     0 2004-11-29 10:58 Test.idx
> -rw-rw-r--  1 tale tale 16942 2004-11-29 10:58 Test.log
> -rw-rw-r--  1 tale tale     0 2004-11-29 10:58 Test.out
> -rw-rw-r--  1 tale tale 10307 2004-11-29 10:58 Test.script
> -rw-rw-r--  1 tale tale 15310 2004-11-29 10:57 Test.tex
> -rw-r--r--  1 tale tale  1598 2004-09-26 08:27 Test.xml
> -rw-r--r--  1 tale tale   249 2004-11-29 09:48 Test.xsl
> 
> I copied all these files to http://people.debian.org/~tale/TexTest/
> 
> --Test.xml--
> <?xml version='1.0' encoding="UTF-8"?> <!-- -*-coding:utf-8-*- -->
> <!DOCTYPE book SYSTEM "/usr/share/sgml/docbook/dtd/xml/4.3/docbookx.dtd" 
>  [
> <!ENTITY www "World Wide Web">
> <!ENTITY paivays "2004-09-25">
> <!ENTITY deborg "dk.debian.org">
> <!ENTITY debian "Debian GNU/Linux">
> 
> ]>
> <book lang="fi">
> <?dbhtml output-dir="Kurssi/"?>
>   <bookinfo>
> <title>Description list testing</title>
>      <date>&paivays;</date>
>      <author>
> 	 <firstname>Tapio</firstname>
> 	 <othername>J.</othername>
> 	 <surname>Lehtonen</surname>
>      </author>
>    </bookinfo>
> 
> 
> 
> 
> 
> <chapter><title>Test part</title>
> 
> 
> <para>Peruskomentoja, jotka luultavasti toimivat kaikissa
> IRC-asiakasohjelmissa ovat:</para>
> 
> 
> <variablelist><title>Variablelist</title>
> 
> <varlistentry><term>  <cmdsynopsis><command>/NICK</command> <arg
> choice="opt">kutsumanimi</arg>  </cmdsynopsis></term>
> <listitem><simpara>
>  Vaihtaa kutsumanimen </simpara> </listitem></varlistentry>
> 
> <varlistentry><term> <cmdsynopsis><command>/QUIT</command> <arg
> choice="opt">Syy</arg>  </cmdsynopsis></term> <listitem><simpara>
>  Poistuu irkistä ja näyttää syyn.  </simpara>
> </listitem></varlistentry>
> 
> <varlistentry><term> <cmdsynopsis><command>/HELP</command> <arg
> choice="opt">komento</arg>  </cmdsynopsis></term> <listitem><simpara>
>  Näytä ohjeita komennon käytöstä.  </simpara>
> </listitem></varlistentry>
> 
> 
> 
> </variablelist>
> 
> 
> </chapter>
> 
> </book>
> 
> <!--
> <mediaobject> <imageobject> <imagedata fileref="" format="" align=""
> width="120mm" scalefit="1"/> </imageobject>
> <textobject><phrase></phrase></textobject> <caption><para>
> </para></caption> </mediaobject>
> -->
> 
> 
> --end Test.xml
> 
> Script started on ma 29. marraskuuta 2004 10:56:20
> tale@wally ~/Work/Yritys/Linux-kurssi/TexTesti
> $ xsltproc -o Test.tex Test.xsl Test.xml
> ################################################################################
>  XSLT stylesheets DocBook - LaTeX 2e                                            
>  Reqs: LaTeX 2e installation common packages                                    
> ################################################################################
>  RELEASE : 0.8pre1
>  VERSION : $Id: VERSION.xml,v 1.6 2004/01/31 12:47:11 j-devenish Exp $
>      TAG : DB2LATEX_0_8PRE1 
>      WWW : http://db2latex.sourceforge.net                                      
>  SUMMARY : http://www.sourceforge.net/projects/db2latex                         
>   AUTHOR : Ramon Casellas  casellas@infres.enst.fr                              
>   AUTHOR : James Devenish  j-devenish@users.sf.net                              
>    USING : libxslt/xsltproc
> ################################################################################
> tale@wally ~/Work/Yritys/Linux-kurssi/TexTesti
> $ jadetex Test.tex 
> This is TeX, Version 3.14159 (Web2C 7.4.5)
> (./Test.tex
> JadeTeX 2003/04/27: 3.13
> 
> ! LaTeX Error: Two \documentclass or \documentstyle commands.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.5 ...entclass[,a4paper,10pt,twoside,openright,]{
>                                                   report}
> ? 
> (/usr/share/texmf/tex/latex/base/ifthen.sty)
> (/usr/share/texmf/tex/latex/misc/anysize.sty
> document style option `anysize' loaded
> Michael Salzenberg, Thomas Esser, Dirk Hillbrecht
> Version 1.0, Aug 13, 1994
> )
> 
> ! LaTeX Error: \l@figure undefined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.43 \renewcommand*\l@figure
>                             {\the@l@figure@leader\let\the@l@figure@leader\re...
> 
> ? 
> WARNING: truncate.sty wasn't available and functionality was skipped.
> (/usr/share/texmf/tex/latex/base/latexsym.sty)
> (/usr/share/texmf/tex/latex/tools/enumerate.sty)
> (/usr/share/texmf/tex/latex/misc/fancybox.sty
> Style option: `fancybox' v1.3 <2000/09/19> (tvz)
> ) (/usr/share/texmf/tex/latex/misc/float.sty)
> (/usr/share/texmf/tex/latex/ms/ragged2e.sty
> (/usr/share/texmf/tex/latex/ms/everysel.sty))
> (/usr/share/texmf/tex/latex/fancyvrb/fancyvrb.sty
> Style option: `fancyvrb' v2.7, with DG/SPQR fixes <2000/03/21> (tvz))
> (/usr/share/texmf/tex/latex/misc/rotating.sty)
> (/usr/share/texmf/tex/latex/misc/subfigure.sty
> 
> ! LaTeX Error: No counter 'figure' defined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.88 \newcounter{subfigure}[figure]
>                                    
> ? 
> ) (/usr/share/texmf/tex/latex/tools/tabularx.sty)
> (/usr/share/texmf/tex/latex/amsmath/amsmath.sty
> For additional information on amsmath, use the `?' option.
> (/usr/share/texmf/tex/latex/amsmath/amstext.sty
> (/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
> (/usr/share/texmf/tex/latex/amsmath/amsbsy.sty)
> (/usr/share/texmf/tex/latex/amsmath/amsopn.sty)
> 
> ! LaTeX Error: Command \iint already defined.
>                Or name \end... illegal, see p.192 of the manual.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.506 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}}
>                                                   
> ? 
> 
> ! LaTeX Error: Command \iiint already defined.
>                Or name \end... illegal, see p.192 of the manual.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.507 ...{\iiint}{\DOTSI\protect\MultiIntegral{3}}
>                                                   
> ? 
> 
> ! LaTeX Error: Command \dddot already defined.
>                Or name \end... illegal, see p.192 of the manual.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.571    \hbox{\normalfont ...}\vss}}}}
>                                        
> ? 
> 
> ! LaTeX Error: Command \ddddot already defined.
>                Or name \end... illegal, see p.192 of the manual.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.574    \hbox{\normalfont....}\vss}}}}
>                                        
> ? 
> Runaway argument?
> \relax\@nil \tilde  \@tempa {\acute } \@tempa {\grave } \@tempa {\dot \ETC.
> ! Paragraph ended before \@tempb was complete.
> <to be read again> 
>                    \par 
> l.951         \noindent##1\par
>                               }%
> ? 
> ! Too many }'s.
> l.951         \noindent##1\par}
>                                %
> ? 
> ! Too many }'s.
> l.953     }
>            %
> ? 
> ! Too many }'s.
> l.954 }
>        }
> ? 
> ! Too many }'s.
> l.954 }}
>         
> ? 
> ) (/usr/share/texmf/tex/latex/amscls/amsthm.sty)
> (/usr/share/texmf/tex/latex/amsmath/amsxtra.sty)
> (/usr/share/texmf/tex/latex/psnfss/palatino.sty)
> 
> ! LaTeX Error: Option clash for package hyperref.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.141 \fi
>          
> ? 
> 
> ! LaTeX Error: No counter 'section' defined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.200  \newfloat{program}{ht}{lop}[section]
>                                            
> ? 
> 
> ! LaTeX Error: No counter 'section' defined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.202  \newfloat{example}{ht}{loe}[section]
>                                            
> ? 
> 
> ! LaTeX Error: No counter 'section' defined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.205  \newfloat{dbequation}{ht}{loe}[section]
>                                               
> ? 
> 
> ! LaTeX Error: No counter 'section' defined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.209  \newfloat{algorithm}{ht}{loa}[section]
>                                              
> ? 
> (/usr/share/texmf/tex/generic/babel/babel.sty
> (/usr/share/texmf/tex/generic/babel/finnish.ldf
> (/usr/share/texmf/tex/generic/babel/babel.def)))
> 
> ! LaTeX Error: Option clash for package inputenc.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.238 \ifx
>           \dblatex@chaptersmark\@undefined\def\dblatex@chaptersmark#1{\markb...
> 
> ? 
> Writing index file Test.idx
> Writing glossary file Test.glo 
> No file Test.aux.
> (/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd)
> (/usr/share/texmf/tex/latex/base/ts1cmr.fd)
> (/usr/share/texmf/tex/latex/psnfss/t1ppl.fd)
> (/usr/share/texmf/tex/latex/hyperref/nameref.sty)
> ! Undefined control sequence.
> \reserved@c ->\HyOrg@maketitle 
>                                \Hy@maketitle@end 
> l.392 \thispagestyle{empty}}
>                             
> ? 
> ! Undefined control sequence.
> l.402 {\sc
>           {Variablelist}}
> ? 
> 
> ! LaTeX Error: Environment description undefined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.404 \begin{description}
>                          
> ? 
> 
> ! LaTeX Error: Lonely \item--perhaps a missing list environment.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.410 }]
>         \null{}
> ? 
> 
> ! LaTeX Error: Lonely \item--perhaps a missing list environment.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.417 }]
>         \null{}
> ? 
> 
> ! LaTeX Error: Lonely \item--perhaps a missing list environment.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.424 }]
>         \null{}
> ? 
> 
> ! LaTeX Error: \begin{document} ended by \end{description}.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.426 \end{description}
>                        
> ? 
> [1.0.13] (./Test.aux)
> 
> LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
> 
>  )
> Output written on Test.dvi (1 page, 2596 bytes).
> Transcript written on Test.log.
> tale@wally ~/Work/Yritys/Linux-kurssi/TexTesti
> $ exit
> 
> Script done on ma 29. marraskuuta 2004 10:58:08
> 
> 
> -- System Information:
> Debian Release: 3.1
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.8-1-k7
> Locale: LANG=fi_FI@euro, LC_CTYPE=fi_FI@euro (charmap=ISO-8859-15)
> 
> Versions of packages xsltproc depends on:
> ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an
> ii  libgcrypt11                 1.2.0-4      LGPL Crypto library - runtime libr
> ii  libgpg-error0               1.0-1        library for common error values an
> ii  libxml2                     2.6.11-5     GNOME XML library
> ii  libxslt1.1                  1.1.8-5      XSLT processing library - runtime 
> ii  zlib1g                      1:1.2.2-3    compression library - runtime
> 
> -- no debconf information
> 
>