5.4 Shallow Delimited Expression

<..eliminate inline math narrative NO 2..>+
 <xsl:template match="span[
     (@class = ’inline-math’)
   and
     (count( <.math content element.> ) = 1)
   and
     child::mrow[ @class=’MathClass-open-close’ ]
     / child::mrow[
        not( child::*[
          not(self::mo) and not(self::mn-group-s)
          and not(self::mi) and not(self::BREAK)
          and not( @title=’speech-extra’ )
        ])
     ]
 ]" >
   <xsl:copy>
     <.shallow delimited expression.>
   </xsl:copy>
 </xsl:template>
-_-_-

<..shallow delimited expression..>
 <xsl:attribute name="class">
    <xsl:text>semi-math</xsl:text>
 </xsl:attribute>
 <PROS PITCH="-5">
 <BREAK SIZE="small"/>
    <xsl:apply-templates select="mrow" />
 <BREAK SIZE="small"/>
 </PROS>
-_-_-