https://bugs.freedesktop.org/show_bug.cgi?id=74528

          Priority: medium
            Bug ID: 74528
          Assignee: [email protected]
           Summary: FILEIMPORT: HTML, FILEEXPORT: XHTML results in output
                    that gives doctype syntax error
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.2.0.4 release
         Component: filters and storage
           Product: LibreOffice

Importing an HTML document and re-exporting it as XHTML results in document
that gives syntax error (wrong doctype) when opened in Firefox:

XML Parsing Error: syntax error
Location: file:///path/to/index.xhtml
Line Number 1, Column 62:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
-------------------------------------------------------------^

I tested using attachment 78645 from bug 64067. I had trouble opening the file
in the GUI, so I did the conversion headless on the command line:

./soffice --headless --convert-to xhtml index.html


Trimming-down the size of the HTML input makes it possible to export this input
to XHTML via the GUI, and achieve similar (error) results.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to