On Fri, Aug 05, 2016 at 11:17:15PM -0400, Scott Kostyshak wrote:
> A few months ago Kornel incorporated xmllint into our XHTML tests (at
> 30ef73ab). The tests now not only check that the export succeeded with a
> non-zero exit code from LyX, but also that the XML is syntactically
> correct.
> 
> Thanks to Richard's work, Only 4 tests fail out of 354 on current
> master. That's a nice ratio! The 4 tests failing are:
> 
> export/doc/attic/eu_UserGuide_xhtml
> export/doc/es/UserGuide_xhtml
> export/doc/ja/UserGuide_xhtml
> export/examples/spreadsheet_xhtml
> 
> spreadsheet_xhtml started failing after this commit: 1840e2db. The other
> three tests have failed since xmllint was incorporated into our XHTML
> tests.
> 
> If anyone is interested in taking a look at these four failing tests,
> the best way is to run the tests from CMake with
> 
> ctest -R "_xhtml"
> 
> and then you can check 
> 
> Testing/Temporary/LastTest.log
> 
> to see the explanations of the errors from xmllint. For example, for
> es/UserGuide, the log gives the following:
> 
> -- Opening and ending tag mismatch: li line 8379 and dfn -> html(1), body(1), 
> div(6), ul(1), li(2), ul(1), li(4)
>         Separaci, 8
>         1, 1
> Opening and ending tag mismatch: ul line 8376 and li -> html(1), body(1), 
> div(6), ul(1), li(2), ul(1), li(4)
>         Tipos de: , 10
> Opening and ending tag mismatch: li line 8375 and ul -> html(1), body(1), 
> div(6), ul(1), li(2), ul(1), li(4)
> Opening and ending tag mismatch: ul line 8374 and li -> html(1), body(1), 
> div(6), ul(1), li(2), ul(1), li(4)
>         Ap, 2
> Opening and ending tag mismatch: div line 8374 and ul -> html(1), body(1), 
> div(6), ul(1), li(2), ul(1), li(4)
> Opening and ending tag mismatch: body line 366 and div -> html(1), body(1), 
> div(6), ul(1), li(2), ul(1), li(4)
> Opening and ending tag mismatch: html line 3 and body -> html(1), body(1), 
> div(6), ul(1), li(2), ul(1), li(4)
> Extra content at the end of the document -> html(1), body(1), div(6), ul(1), 
> li(2), ul(1), li(4)
> 
> Or, if you prefer the manual way, just export the file in LyX to XHTML
> and then open it in e.g. Chromium. At the top it gives the following
> message:
> 
>     This page contains the following errors:
>     
>     error on line 8379 at column 28: Opening and ending tag mismatch: li
>     line 0 and dfn
>     Below is a rendering of the page up to the first error.
> 
> Scott

I made a trac ticket at
http://www.lyx.org/trac/ticket/10355

Scott

Attachment: signature.asc
Description: PGP signature

Reply via email to