1.10.2 The External Envelope

<..configure ooffice latex..>+
 <.latex tabular.>
-_-_-

<..latex tabular..>
 \ConfigureEnv{tabular}
   {<.configure tabular noalign.>%
    \IgnorePar<.inline comment.>\EndP
    <.save cols info.>%
    \ifnum \BegEnd:D>0
      <.boxed env.>%
    \fi
    \gHAdvance\BegEnd:D by 1
    \bgroup <.Text-Body HtmlPar.>%
   }
   {\egroup
    \gHAdvance\BegEnd:D by -1
    \ifnum \BegEnd:D>0
       <.end boxed env.>%
    \fi
    <.recall cols info.>\ShowPar
    <.configure clear noalign.>%
    <.try env inline par.>%
   }{}{}
-_-_-

<..configure ooffice tabularx..>
 \ConfigureEnv{tabularx}
   {<.configure tabular noalign.>%
    \IgnorePar<.inline comment.>\EndP
    <.save cols info.>%
   }
   {<.recall cols info.>\ShowPar
    <.configure clear noalign.>%
    <.try env inline par.>%
   }{}{}
-_-_-

<..latex tabular..>+
 \Configure{tabular}
    {\ifvmode \IgnorePar\fi \EndP \halignTB{tabular}%
     <.list the grouping of columns.>%
    }
    {<.insert Clr.>\HCode{</table:table>}}
    {<.cond trail row.>%
     \HCode{<table:table-row \Hnewline
       <.trail row.>%
       table:style-name="TBL-\TableNo-\HRow-}%
       <.row attributes.>\HCode{">}}
    {\HCode{</table:table-row>}<.end cond trail row.>%
    }
    {\HCode{<table:table-cell \Hnewline}%
     <.multispan cell.>%
     \HCode{ table:style-name="TBL-\TableNo-\HRow-\HCol">}%
     <.start par at cell.><.save table num.>}
    {<.end array par box.><.recall table num.>%
       <.end par at cell.>\HCode{</table:table-cell>}}
-_-_-

<..cond trail row..>
 \ifTag{vis-\TableNo-\HRow}%
       {\special{t4ht@[}\gdef\end:box{\special{t4ht@]}}}%
       {\global\let\end:box\empty}%
-_-_-

<..end cond trail row..>
 \end:box
-_-_-

<..trail row..>
 \ifTag{vis-\TableNo-\HRow}{table:visibility="collapse" }{}
-_-_-

<..latex tabular..>+
 \Configure{endtabular} {\Tag{vis-\TableNo-\HRow}{}}
-_-_-

<..latex tabular..>+
 \def\:MT{\ifmathml \a:mathml m\else table:\fi}
 \Configure{halignTB}
    {\HCode{<\:MT table }}
    {\HCode{>}}
-_-_-

<..configure tabular noalign..>
 \Configure{noalign}%
   {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
   {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
-_-_-

<..configure clear noalign..>
 \Configure{noalign}{}{}%
-_-_-

<..latex tabular..>+
 \Configure{halignTB<>}{tabular}{\HCode{\Hnewline
      table:style-name="tabular"
      }<>\HAlign}
-_-_-

For some reason, the following doesn’t have effect at the office tyles section

<..automatic styles..>+
 <style:style style:name="tabular"
              style:family="table">\Hnewline
 <style:table-properties style:rel-width="76\%"
                  fo:margin-left="1cm"
                  fo:margin-right="1cm"
                  table:align="margins"/>\Hnewline
 </style:style>\Hnewline
-_-_-

<..inline comment..>
 \ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
-_-_-

<..latex tabular..>+
 \HAssign\Next:TableNo=0
 \global\let\TableNo=\Next:TableNo
-_-_-

<..increase table num..>
 \gHAdvance\Next:TableNo by 1
 \global\let\TableNo=\Next:TableNo
-_-_-

<..save table num..>
 \PushStack\Table:Stck\TableNo
-_-_-

<..recall table num..>
 \PopStack\Table:Stck\TableNo
-_-_-

<..Text-Body HtmlPar..>
 \Configure{HtmlPar}
    {\EndP \HCode{<text:p text:style-name="Text-body<.cond rtl class.>"
                           >}}
    {\EndP \HCode{<text:p text:style-name="Text-body<.cond rtl class.>"
                           >}}
    {\HCode{</text:p>}}
    {\HCode{</text:p>}}
-_-_-