when given a document whose root element is tml:tex and whose only child
is a non-visible cursor. The problem is fixed generating a <m:math/> document
(ignoring the visibility status of the cursor).
</xsl:choose>
</xsl:template>
+ <xsl:template match="tml:tex[not(tml:math)]">
+ <!-- This is an empty TeX document. We generate the corresponding -->
+ <!-- empty MathML document. -->
+ <m:math/>
+ </xsl:template>
+
<xsl:template match="tml:math">
<m:math>
<xsl:if test="@id">
</xsl:if><xsl:value-of select="@val"/>I</m:mtext>
</xsl:otherwise>
</xsl:choose>
- </xsl:template>-->
+ </xsl:template>
<xsl:template match="tml:cursor[not(@visible) or @visible='0']">
</xsl:template>