4 Configuration
4.3 Using OpenOffice.org to create XHTML documents
The configuration file cleanxhtml.xml that is distributed with Writer2LaTeX, can be used to create semantically rich XHTML content, which can be formatted with your own stylesheet (you should edit the file to add the URL to the stylesheet you want to use).
A subset of the built-in styles in Writer are mapped to XHTML elements (note that the style names are localized, so this is for the english version of OpenOffice.org):
OOo Writer style |
OOo Writer style family |
XHTML element |
Text body |
paragraph style |
p |
Sender |
paragraph style |
address |
Quotations |
paragraph style |
blockquote |
Preformatted Text |
paragraph style |
pre |
List Heading |
paragraph style |
dt (in dl) |
List Contents |
paragraph style |
dd (in dl) |
Horizontal Rule |
paragraph style |
hr |
Citation |
text style |
cite |
Definition |
text style |
dfn |
Emphasis |
text style |
em |
Example |
text style |
samp |
Source Text |
text style |
code |
Strong Emphasis |
text style |
strong |
Teletype |
text style |
tt |
User entry |
text style |
kbd |
Variable |
text style |
var |
bold |
hard formatting attribute |
b |
italics |
hard formatting attribute |
i |
fixed pitch font |
hard formatting attribute |
tt |
superscript |
hard formatting attribute |
sup |
subscript |
hard formatting attribute |
sub |
So by using these styles only, you will create well-structured XHTML documents. See the document sample-xhtml.sxw for an example of how to use this.