4 Using Writer2xhtml
Writer2xhtml is producing standards compliant XHTML files, in particular it can be used to put math on the web using the XHTML + MathML combination. Thus Writer2xhtml can convert into any of these XHTML variants:
-
HTML 1.0 strict, which follows the guidelines for HTML compatibility, so that the output should be viewable with any browser that supports HTML 4. The default file extension for this format is .html.
-
XHTML 1.1 + MathML 2.0, which currently is viewable with Mozilla and Amaya only. The default file extension is .xhtml.
-
XHTML 1.1 + MathML 2.0 using XSL transformations from the W3C Math Working Group to make the file viewable also in some browsers that needs a plugin to display MathML, eg. Internet Explorer with MathPlayer plugin. The default file extension is .xml.
This is how W3C's Math Working Group recommends to put ”math on the web”.
Writer2xhtml is quite flexible; in particular with respect to the handling of formatting:
-
You can let Writer2xhtml convert the style information in the source document and thus get an xhtml document that has the same look and feel as the original.
-
You can use your own style sheet and let Writer2xhtml convert the content only. You can map styles in OOo to xhtml elements and css classes, see sections 4.3 and 4.4