Bug#422998: dblatex fail on docbook table generated by moinmoin

2007-05-11 Thread Andreas Hoenen
Hello Petter,

I think your example does not show a dblatex problem, but an invalid
(ugly) and broken (crucial) DocBook input:

1) The input is no valid DocBook document.  Generally you can't expect
   the transformation to work properly if the input is not of the
   required format.  In this special case you are lucky, after fixing 2)
   the remaining deviations from the DocBook DTD (validated against
   DocBook versions 4.2 and 4.5) do not break the transformation.

2) Some namestart and nameend attributes refer to undefined columns:
   'xxx0' and 'xxx8'.  How shall the corresponding elements get
   rendered?  No chance for an automatic processor.  This one breaks the
   dblatex transformation, after replacing 'xxx0' by 'xxx1' and 'xxx8'
   by 'xxx7' the transformation succeeds.

You may want to reassign this bug report to one of the moinmoin
packages, otherwise I would suggest to close it.  (Unless you disagree
to my argumentation :-) In which case feel free to contradict.)

Regards, Andreas
--
Andreas Hoenen [EMAIL PROTECTED]

GPG: 1024D/B888D2CE
 A4A6 E8B5 593A E89B 496B
 82F0 728D 8B7E B888 D2CE


pgpBv4fHtWSQA.pgp
Description: PGP signature


Bug#422998: dblatex fail on docbook table generated by moinmoin

2007-05-11 Thread Petter Reinholdtsen
reassign 422998 python-moinmoin
found 422998 1.5.3-1.2
thanks

[Andreas Hoenen]
 You may want to reassign this bug report to one of the moinmoin
 packages, otherwise I would suggest to close it.

OK.  Reassigning.  As far as I can see from the machine in question,
it is running python-moinmoin version 1.5.3-0bpo1, but I have no
reason to believe that this problem isn't present in version 1.5.3-1.2
in Etch.

 (Unless you disagree to my argumentation :-) In which case feel free
 to contradict.)

I have not enoght knowledge about the topic to argue. :)

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#422998: dblatex fail on docbook table generated by moinmoin

2007-05-09 Thread Petter Reinholdtsen

Package: dblatex
Version: 0.2-2

I discovered this problem when trying to generate a PDF version of a
book the Debian Edu project are editing on a moinmoin wiki.  It proved
to be a problem with a table generated by moinmoin, which dblatex
didn't like.  To test with the original moinmoin instance, do this:

  GET 'http://wiki.skolelinux.no/BugTest?action=formatmimetype=xml/docbook' \
  BugTest.xml
  dblatex -T simple -o BugTest.pdf BugTest.xml

The raw moinmoin  look like this (indented):

  Utsnitt fra ITIL-dokumentasjonen som ga docbook som dblatex ikke forsto.

  Status Pr. 01.06.05||Behov 2008||
    Server status||  Klienter||  Bærbare||Fil 
servere[[BR]]+tynnklientserver:||  Klinter||  Bærbare||
  ||Holumskogen||  1||  25||  5||2||  68||  15||

The generated docbook XML code look like this (indented and
reformatted for easier read):

?xml version=1.0?articlearticleinfotitleBugTest
  /title
  /articleinfoparaUtsnitt fra ITIL-dokumentasjonen som ga docbook som 
dblatex ikke forsto.
  /paratablecaption/tgroup cols='7'colspec colname='xxx1'/colspec 
colname='xxx2'/colspec colname='xxx3'/colspec colname='xxx4'/colspec 
colname='xxx5'/colspec colname='xxx6'/colspec 
colname='xxx7'/tbodyrowentry namest='xxx0' nameend='xxx1'paraStatus 
Pr. 01.06.05
  /para
  /entryentryparaBehov 2008
  /para
  /entryentry namest='xxx5' nameend='xxx8'/
  /rowrowentry namest='xxx0' nameend='xxx1'para  Server status
  /para
  /entryentrypara  Klienter
  /para
  /entryentrypara  Bærbare
  /para
  /entryentryparaFil servere+tynnklientserver:
  /para
  /entryentrypara  Klinter
  /para
  /entryentrypara  Bærbare
  /para
  /entry
  /rowrowentryparaHolumskogen
  /para
  /entryentrypara  1
  /para
  /entryentrypara  25
  /para
  /entryentrypara  5
  /para
  /entryentrypara2
  /para
  /entryentrypara  68
  /para
  /entryentrypara  15
  /para
  /entry
  /row
  /tbody
  /tgroup
  /table
  /article

When running  dblatex, this is the output, and it fail to generate a PDF:

  % dblatex -T simple -o BugTest.pdf BugTest.xml
  Build the listings...
  XSLT stylesheets DocBook -  LaTeX 2e (0.2-2)
  ===
  This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
  entering extended mode
  pdflatex failed
  /tmp/tmpn-_34N/test_tmp.tex:64: Missing number, treated as zero.
  /tmp/tmpn-_34N/test_tmp.tex:64: leading text: }
  /tmp/tmpn-_34N/test_tmp.tex:65: Missing number, treated as zero.
  /tmp/tmpn-_34N/test_tmp.tex:65: leading text: 
\cline{2-2}\cline{3-3}\cline{4-4}\cline{5-}
  Error: pdflatex compilation failed
  %

I managed to solve it by inserting space between the || in the raw
document.  This gave me docbook code acceptable by dblatex.

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]