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 (modern) 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.
XHTML 1.1 + MathML 2.0 (xsl) will create a similar XHTML file, but using some XSL-transformations provided by the World Wide Web Consortium (W3C), the result will be viewable by a wider range of browsers, such as Internet Explorer with the MathPlayer plugin. See http://www.w3.org/Math/XSL/ for details.
This is how W3C's Math Working Group recommends to put ”math on the web”.
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 |
XHTML 1.1 + MathML 2.0 (with xsl transformation) | .xml | application/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.