Josselin Mouette <[EMAIL PROTECTED]> wrote:
> Package: dblatex
> Version: 0.2.6-1
>
> The following docbook code is incorrect:
> <itemizedlist>
> <para>blah</para>
> <para>blah</para>
> </itemizedlist>
>
> However it is not detected during the XSL transformation phase. The
> generated TeX code looks like:
> \begin{itemize}
> \end{itemize}
> which is incorrect as well, and the compilation fails without a useful
> message for the user.
<snip/>Hi, two remarks: 1) Sadly, I cannot reproduce your problem: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [EMAIL PROTECTED]:~/dblatex/work/bug451267$ cat incorrect.xml <?xml version="1.0"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <article lang="en"> <title>Non validating docbook article</title> <itemizedlist> <para>Example paragraph</para> </itemizedlist> </article> [EMAIL PROTECTED]:~/dblatex/work/bug451267$ dblatex incorrect.xml Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.2.6-1) =================================================== Build incorrect.pdf This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode pdflatex failed incorrect_tmp.tex:35: Something's wrong--perhaps a missing \item. incorrect_tmp.tex:35: leading text: \end{itemize} Error: pdflatex compilation failed [EMAIL PROTECTED]:~/dblatex/work/bug451267$ cat fragment.xml <itemizedlist> <para>Example paragraph</para> </itemizedlist> [EMAIL PROTECTED]:~/dblatex/work/bug451267$ dblatex fragment.xml Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.2.6-1) =================================================== *** Warning: the root element is not an article nor a book *** Warning: element wrapped with article Build fragment.pdf This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode pdflatex failed fragment_tmp.tex:35: Something's wrong--perhaps a missing \item. fragment_tmp.tex:35: leading text: \end{itemize} Error: pdflatex compilation failed <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Thus if you could give me more details. 2) dblatex expects valid DocBook as its input. However, it does no validation on its own (there are tools like xmllint for this), and it tries to transform the input even if the latter has errors: best effort principle. If dblatex succeeds, great. If not, don't blame the tool. One could consider this a case of "shit in, shit out". Regards, Andreas -- Andreas Hoenen <[EMAIL PROTECTED]> GPG: 1024D/B888D2CE A4A6 E8B5 593A E89B 496B 82F0 728D 8B7E B888 D2CE
pgpuHouzNK2Xe.pgp
Description: PGP signature

