Ask Your Question

Exhaustive solution for HTML export [closed]

asked 2013-02-28 17:16:11 +0200

CyanCG gravatar image

The facts

LibreOffice has long had two separate sets of features pertaining to HTML:

  • A traditional concept of different HTML implementations, as reflected by the HTML Compatibility options which allow one to export to “Mozilla Firefox”, “Microsoft Internet Explorer” or “LibreOffice Writer”. Up until recently, the menu had a “Netscape” entry instead of “Mozilla Firefox” and even had a “HTML 3.2” entry. OpenOffice 3.4.1 still has these two ancient options.

  • A more modern approach of exporting to XHTML through the File > Export menu. This exports XHTML 1.1 with MathML. The code is clean, but it has inline CSS and does not export everything (footnotes are not present in the output, for example).

Even worse, this page from the OpenOffice website suggests that the XHTML export filter is actually based on the former Star Writer XML format and only works with ODT because it internally maps SWX to ODT.

The question

How come a new export filter from ODT to XHTML was never fully developed, considering the importance of being able to publish to the Web?

Furthermore, this would mean that the HTML version of the ODF 1.2 standard relies on an export filter that was not even designed to handle ODF? This would be seriously inappropriate. I assume said export filter was indeed used to produce this document, based on information in the head of the page’s source code: there is the comment <!--This file was converted to xhtml by - see for more info.-->. Following the link in this comment, one finds a page that is more up-to-date than the previously mentioned one. On that page one can read:

Now as a sample filter, it is an optional installation component of 3.x, installed together with the 'XSLT sample filter' package. Within the Office the filter can be used when choosing the XHTML export from File->Export...

Most fortunately, the article gives the impression that the XSLT filter was indeed updated for ODF. However, it is considered an optional sample.

Why does this situation persist? Why is there no all-encompassing solution to impeccably export ODF 1.2 to XHTML 1.1 with full control over the mapping of elements and attributes? Of course, there is the Writer2XHTML extension, but this seems to be stagnant at the moment and the problem is that this kind of ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-25 18:28:28.579888

4 Answers

Sort by » oldest newest most voted

answered 2013-03-12 02:34:34 +0200

qubit gravatar image

Hi @CyanCG,

Looks like we don't have any good answers for you on this front. I agree that HTML export is definitely something that could use some improvement (we've got a number of q's about improving export, simplifying HTML styles, etc..), but it doesn't look like this enhancement is currently on the top of anyone's priority queue.

For further discussion, you could try one of the mailing lists -- perhaps someone will be interested in riffing with you on this topic :-)


edit flag offensive delete link more


Ok, thank you. I think I’ll send an email to the developer of Writer2XHTML too; do you know if anyone in the development team or on this Ask site knows him/works with him/knows whether he contributes to LO? I am worried that he no longer actively develops his extensions, because the 1.2 versions have been in beta for a long time. They’re invaluable tools, they just need a boost!

CyanCG gravatar imageCyanCG ( 2013-03-15 17:29:21 +0200 )edit

@CyanCG -- I'm not sure I recognize the dev's name, but the last update to the Sourceforge project was 2012-03-16, so it appears that the extensions may still be maintained.

qubit gravatar imagequbit ( 2013-03-16 04:11:03 +0200 )edit

Okay, I will try to get more info. I guess subscribing to SourceForge and posting on the extension’s site would be a good start.

CyanCG gravatar imageCyanCG ( 2013-03-17 20:13:02 +0200 )edit

answered 2014-06-18 00:28:06 +0200

RecuperoDati gravatar image

I've succesfully intalled the extension writer2xhtml from sourceforge

it does provide a better html exportation, though I don't like so much the CSS method they do use.

The extension is available on the openoffice extensions website


edit flag offensive delete link more

answered 2014-02-19 06:44:13 +0200

bernardo466 gravatar image

I found this list of filters the name that you should write is the attribute oor:name

edit flag offensive delete link more


I do not understand what those filters do exactly: I only see some generic properties in them and nothing about mappings of XML elements to HTML elements.

CyanCG gravatar imageCyanCG ( 2014-02-20 16:18:43 +0200 )edit

answered 2013-02-28 23:12:46 +0200

File an enhancement bug.

edit flag offensive delete link more


I shall, but I wanted to know, among other things, if someone had found another satisfactory alternative or managed to tame Writer2LaTeX and bind it to their will, etc. I would like to have insights, assessments and witnesses, so that I can file an enhancement bug knowing the whole picture.

CyanCG gravatar imageCyanCG ( 2013-03-01 00:59:52 +0200 )edit

Question Tools


Asked: 2013-02-28 17:16:11 +0200

Seen: 2,675 times

Last updated: Jun 18 '14