Le vendredi 16 novembre 2007 à 13:23 +0100, Andreas Hoenen a écrit : > 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
This is exactly the issue i'm talking about. This error message doesn't give any hint about where the problem comes from. > 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". As a tool that handles XML which is a format that can easily be validated, I'd expect it to at least give a warning when the XML input isn't valid. In this specific case, the compilation fails, and that's expected. However I'd like to see something about the real reason, which is malformed XML, not something about a missing \item. -- .''`. : :' : We are debian.org. Lower your prices, surrender your code. `. `' We will add your hardware and software distinctiveness to `- our own. Resistance is futile.
signature.asc
Description: Ceci est une partie de message numériquement signée

