<xsl:when test=" child::*[
(position() = 2)
and
((@class = ’msub’) or (@class = ’msup’) or (@class = ’msubsup’))
]" >
<xsl:variable name="content">
<xsl:apply-templates select="child::*[2] / child::*[
@class = ’mrow-base’ ]"
mode="content" />
</xsl:variable>
<xsl:choose>
<xsl:when test="
string-length( normalize-space( $content )) = 1
" >
<xsl:attribute name="class">
<xsl:text>semi-math</xsl:text>
</xsl:attribute>
<xsl:apply-templates select="*[2]" />
<span class="end-script" title="speech-extra">
<xsl:text> baseline </xsl:text>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="*|@*|comment()|text()" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
-_-_-