6 mrow

OpenOffice 2 loads

<math:msub>  
    <math:mrow>  
      <math:mi>x</math:mi>  
    </math:mrow>  
    <math:mrow>  
      <math:msub>  
        <math:mrow>  
          <math:mi>i</math:mi>  
        </math:mrow>  
        <math:mrow>  
          <math:mi>j</math:mi>  
        </math:mrow>  
      </math:msub>  
    </math:mrow>  
  </math:msub>

and

    <math:msub>  
      <math:mi>x</math:mi>  
      <math:msub>  
        <math:mi>i</math:mi>  
        <math:mi>j</math:mi>  
      </math:msub>  
    </math:msub>

into x_i_j which is a broken expression. Editing in OpenOffice the source into x_{i_j} or {x}_{{i}_{j}}

<..handle mrow elements NO..>
 <set name="math:mrow" >
    <.open mml xslt script.>
    <.math:mrow templates.>
    <.close xslt script.>
 </set>
 <xslt name="." xml="." xsl="math:mrow" />
-_-_-

<..math:mrow templates..>
 <xsl:template match=" math:mrow[ count(child::*)=1 ]" >
       <xsl:apply-templates select="*|@*|text()" />
 </xsl:template>
-_-_-
The output of tex4ht on $x_{i_j}$ is  
 
   <math:msub>  
       <math:mrow>  
         <math:mi>x</math:mi>  
       </math:mrow>  
       <math:mrow>  
         <math:msub>  
           <math:mrow>  
             <math:mi>i</math:mi>  
           </math:mrow>  
           <math:mrow>  
             <math:mi>j</math:mi>  
           </math:mrow>  
         </math:msub>  
       </math:mrow>  
     </math:msub>  
 
and OO2 loads the code into a broken format and view x_i_j.  The same  
outcome occurs when tex4ht is modified to produce the following output.  
 
       <math:msub>  
         <math:mi>x</math:mi>  
         <math:msub>  
           <math:mi>i</math:mi>  
           <math:mi>j</math:mi>  
         </math:msub>  
       </math:msub>  
 
A manual editing of x_i_j into {x}_{{i}_{j}} or x_{i_j} provides the  
proper display (and identical mathml code).