Package: dblatex
Version: 0.3.12py3-2
X-Debbugs-CC: Benoit Guillon <ben.guil...@gmail.com>

When trying to render a table with header cells spanning several rows
and columns, I get this error from dblatex/latex:

  % dblatex test.xml
  Build the book set list...
  Build the listings...
  XSLT stylesheets DocBook - LaTeX 2e (0.3.12)
  ===================================================
  Stripping NS from DocBook 5/NG document.
  Processing stripped document.
  Build test.pdf
  pdflatex failed
  test.tex:103: Extra alignment tab has been changed to \cr.
  test.tex:103: leading text: }}&
  test.tex:889: Extra alignment tab has been changed to \cr.
  test.tex:889: leading text: }}&

  A possible reason for transformation failure is invalid DocBook
  (as reported by xmllint)

  Error: pdflatex compilation failed
  make: *** [Makefile:4: test.pdf] Error 1

As far as I can tell, the docbook 5 XML generated by asciidoc is
correct, and the relevant part of the XML look like this:

<table frame="all" rowsep="1" colsep="1">
<title>Etableringslån I</title>
<tgroup cols="9">
<colspec colname="col_1" colwidth="11.1111*"/>
<colspec colname="col_2" colwidth="11.1111*"/>
<colspec colname="col_3" colwidth="11.1111*"/>
<colspec colname="col_4" colwidth="11.1111*"/>
<colspec colname="col_5" colwidth="11.1111*"/>
<colspec colname="col_6" colwidth="11.1111*"/>
<colspec colname="col_7" colwidth="11.1111*"/>
<colspec colname="col_8" colwidth="11.1111*"/>
<colspec colname="col_9" colwidth="11.1112*"/>
<tbody>
<row>
<entry align="left" valign="top" morerows="2"><simpara>Område</simpara></entry>
<entry align="left" valign="top" namest="col_2" 
nameend="col_5"><simpara>Antall</simpara></entry>
<entry align="left" valign="top" namest="col_6" 
nameend="col_9"><simpara>Prosent</simpara></entry>
</row>
<row>
<entry align="left" valign="top" morerows="1"><simpara>Innvilget i 
alt</simpara></entry>
<entry align="left" valign="top" namest="col_2" nameend="col_3"><simpara>Kjøp 
av bolig</simpara></entry>
<entry align="left" valign="top" morerows="1"><simpara>Refin.</simpara></entry>
<entry align="left" valign="top" morerows="1"><simpara>I alt</simpara></entry>
<entry align="left" valign="top" namest="col_5" nameend="col_6"><simpara>Kjøp 
av bolig</simpara></entry>
<entry align="left" valign="top" morerows="1"><simpara>Refin.</simpara></entry>
</row>
<row>
<entry align="left" valign="top"><simpara>Nye</simpara></entry>
<entry align="left" valign="top"><simpara>Brukte</simpara></entry>
<entry align="left" valign="top"><simpara>Nye</simpara></entry>
<entry align="left" valign="top"><simpara>Brukte</simpara></entry>
</row>

Is the error in the docbook XML or in dblatex?  Because this is docbook
5 I am unable to validate the XML using xmllint, but as far as I can
tell it is well formed and complete.

Attached are the files needed to run the test locally.  'make' will
trigger the problem.

-- 
Happy hacking
Petter Reinholdtsen

Attachment: Makefile
Description: Binary data

Attachment: test.adoc
Description: Binary data

Attachment: test.xml
Description: XML document

Reply via email to