Hi,If you are still interested in, please find attached a fix to the bugs you have found (replace htmltbl.xsl). There were two failures: first the templates expected some <colgroup> and/or <col> setup, second it was not able to handle @cellpadding expressed in percentage.
Tell me if it's ok, Regards, BGOn Fri, 21 Jun 2013 20:24:03 +0200, Jeremy C. Reed <r...@reedmedia.net> wrote:
I have a document that has various HTML-style tables. With dblatex-0.3.2 and 0.3.4, I get errors like: t1:guide$ dblatex example2.xml Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.3.2) =================================================== Build example2.pdf pdflatex failed example2.tex:79: Paragraph ended before \calc@assign@generic was complete. example2.tex:84: Extra }, or forgotten \endgroup. example2.tex:84: leading text: \end{table} example2.tex:87: \begin{table} on input line 66 ended by \end{document}. example2.tex:87: leading text: \end{document} example2.tex:87: You can't use `\end' in internal vertical mode. example2.tex:87: leading text: \end{document} example2.tex:87: \begin{table} on input line 66 ended by \end{document}. example2.tex:87: leading text: \end{document} example2.tex:87: Missing } inserted. example2.tex:87: leading text: \end{document} example2.tex: Emergency stop. Unexpected error occured or: t1:guide$ dblatex example2.xml Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.3.4) =================================================== Build example2.pdf pdflatex failed example2.tex:80: Paragraph ended before \calc@assign@generic was complete. example2.tex:85: Extra }, or forgotten \endgroup. example2.tex:85: leading text: \end{table} example2.tex:88: \begin{table} on input line 67 ended by \end{document}. example2.tex:88: leading text: \end{document} example2.tex:88: You can't use `\end' in internal vertical mode. example2.tex:88: leading text: \end{document} example2.tex:88: \begin{table} on input line 67 ended by \end{document}. example2.tex:88: leading text: \end{document} example2.tex:88: Missing } inserted. example2.tex:88: leading text: \end{document} example2.tex: Emergency stop. Unexpected error occured Error: pdflatex compilation failed I had noticed other times (but not sure what versions used), the generated PDF just was missing the content. http://dblatex.sourceforge.net/doc/manual/sec-table.html says ``Since version 0.3.2 dblatex supports HTML tables.'' I should just convert from the HTML tables to workaround this, but does anyone know if I did something wrong or if dblatex has a problem? My example xml file is below: Jeremy C. Reed <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" > <book> <bookinfo> <title>test</title> </bookinfo> <chapter id="intro"> <title>Introduction</title> <para> This is a test of a table. </para> <para> <table border="1" cellpadding="5%" id="my-list"> <caption>List of options</caption> <thead> <tr><th>Name</th><th>Code</th><th>Type</th><th>Array?</th></tr> </thead> <tbody> <tr><td>subnet-mask</td><td>1</td><td>ipv4-address</td><td>false</td></tr> <tr><td>time-offset</td><td>2</td><td>uint32</td><td>false</td></tr> <tr><td>vivso-suboptions</td><td>125</td><td>binary</td><td>false</td></tr> </tbody> </table> </para> </chapter> </book> ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Dblatex-users mailing list Dblatex-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dblatex-users
htmltbl.xsl.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________ Dblatex-users mailing list Dblatex-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dblatex-users