<?xml version="1.0" encoding="UTF-8"?>
<!-- cleanxhtml.xml
     This is a sample configuration file for Writer2xhtml.
     The options are set to produce a clean XHTML file using
     standard XHTML elements, using a custom style sheet for
     formatting. -->

<config>
  <!-- options -->
  <option name="create_user_config" value="true" />
  <option name="xhtml_no_doctype" value="false" />
  <option name="xhtml_custom_stylesheet" value="(put url to your own stylesheet here)" />
  <option name="xhtml_ignore_styles" value="true" />
  <option name="xhtml_use_dublin_core" value="true" />
  <option name="xhtml_convert_to_px" value="true" />
  <option name="xhtml_scaling" value="100%" />
  <option name="xhtml_column_scaling" value="100%" />
  <option name="xhtml_split_level" value="0" />
  <option name="xhtml_calc_split" value="false" />
  <option name="ignore_hard_line_breaks" value="true" />
  <option name="ignore_empty_paragraphs" value="true" />
  <option name="ignore_double_spaces" value="true" />

  <!-- map OOo paragraph styles to xhtml elements -->
  <xhtml-style-map name="Text body" class="paragraph" element="p" css="(none)" />  
  <xhtml-style-map name="Sender" class="paragraph" element="address" css="(none)" />
  <xhtml-style-map name="Preformatted Text" class="paragraph" element="pre" css="(none)" />
  <xhtml-style-map name="Quotations" class="paragraph"
block-element="blockquote" block-css="(none)" element="p" css="(none)" />
  <xhtml-style-map name="List Heading" class="paragraph" block-element="dl" block-css="(none)" element="dt" css="(none)" />
  <xhtml-style-map name="List Contents" class="paragraph" block-element="dl" block-css="(none)" element="dd" css="(none)" />
  <xhtml-style-map name="Horizontal Line" class="paragraph" element="hr" css="(none)" />

  <!-- map OOo text styles to xhtml elements -->
  <xhtml-style-map name="Citation" class="text" element="cite" css="(none)" />
  <xhtml-style-map name="Definition" class="text" element="dfn" css="(none)" />
  <xhtml-style-map name="Emphasis" class="text" element="em" css="(none)" />
  <xhtml-style-map name="Example" class="text" element="samp" css="(none)" />
  <xhtml-style-map name="Source Text" class="text" element="code" css="(none)" />
  <xhtml-style-map name="Strong Emphasis" class="text" element="strong" css="(none)" />
  <xhtml-style-map name="Teletype" class="text" element="tt" css="(none)" />
  <xhtml-style-map name="User entry" class="text" element="kbd" css="(none)" />
  <xhtml-style-map name="Variable" class="text" element="var" css="(none)" />
  
  <!-- map OOo hard formatting attributes to xhtml elements -->
  <xhtml-style-map name="bold" class="attribute" element="b" css="(none)" />
  <xhtml-style-map name="italics" class="attribute" element="i" css="(none)" />
  <xhtml-style-map name="fixed" class="attribute" element="tt" css="(none)" />
  <xhtml-style-map name="superscript" class="attribute" element="sup" css="(none)" />
  <xhtml-style-map name="subscript" class="attribute" element="sub" css="(none)" />
  
  <!-- Notes: Writer2xhtml with the above rules support a subset of xhtml elements;
  some remarks on other elements: 
  * The inline elements q, abbr, acronym, big and small are not supported, but
    you can add support for those if you define your own styles in OOo and map
    them to these elements.
  * del, ins, object, map and forms are not currently supported by Writer2xhtml, but
    might be in the future
  -->

</config>

