Getting Obtree output to be xhtml valid
As Obtree dates back in the times before xhtml it takes a few tweaks to get the output to be xhtml conform.
In the StyleDefinition DefaultStyles add the following
<!– convert the sys-break of text objects from <br> to <br /> –>
<styledef sys-break>
<styleheader><br /></styleheader>
<stylefooter></stylefooter>
<stylepreview displayname=”sys-break” font=”sans-serif” size=”12″Â color=”black” />
</styledef>
<!– change the <p> that a <sty sys-align-left> creates from<p> to a <div> – so you can use <h1> in it –>
<styledef sys-align-left>
<styleheader><div style=”padding-bottom: 12px”></styleheader>
<stylefooter></div></stylefooter>
<stylepreview displayname=”sys-break” font=”sans-serif” size=”12″Â color=”black”/>
</styledef>