2 Using the export filters
2.4 Using Writer2xhtml
To export a Writer document to XHTML, choose one of the following formats in the export dialog:
XHTML 1.0 strict will create an XHTML file which is compatible with the older HTML 4 standard. You can thus expect that the result will be viewable with any browser, but note that mathematical formulas are not supported.
XHTML 1.1 will create an XHTML file using the XHTML 1.1 standard, but without support for mathematical formulas.
XHTML 1.1 + MathML 2.0 will create an XHTML file which follows the standard for combining XHTML with mathematical formulas, using MathML for the formulas. Unfortunately, not all browsers support this.
HTML5 will create a HTML5 file using MathML for mathematical formulas and SVG for vector graphics. This format should be preferred for contemporary browsers.
EPUB will create an electronic e-book suitable for viewing on variety of devices.
In all cases, Writer2xhtml uses CSS to format the document, either by converting the original formatting to CSS or by using a CSS style sheet selected by the user.
Note that the default file extension and the recommended MIME types varies with the output format:
Output format | Default file extenstion | MIME type |
XHTML 1.0 | .html | text/html |
XHTML 1.1 | .xhtml | application/xhtml+xml |
XHTML 1.1 + MathML 2.0 | .xhtml | application/xhtml+xml |
HTML5 | .html | text/html or application/xhtml+xml |
EPUB | .epub | application/epub+zip |
After you have typed in a file name, an options dialog will open. To get help, select an item and press F1 or press the help button. Alternatively you can enable extended tips with Shift-F1.
Click Export to initiate the export or Cancel to close the dialog without exporting the document.