<xsl:template match="*[
(self::msup or self::msub or self::msubsup)
and
not(
child::mrow[ @class = ’mrow-sub’ ]
/ child::*[ not(@title = ’speech-extra’)
and
(normalize-space(.) != ’’)
]
)
and
not(
child::mrow[ @class = ’mrow-super’ ]
/ child::*[ not(@title = ’speech-extra’)
and
(normalize-space(.) != ’’)
]
)
]" >
<xsl:apply-templates select="child::mrow[
@class = ’mrow-base’ ]/*" />
</xsl:template>
-_-_-