6.4 Prefix ‘and’ Connectors

<..fraction ’and’ prefix..>
 <xsl:template match="span[
    ((@class = ’mfrac’) and
                        (translate(
                           concat(
                             span[ (@class = ’mrow-numerator’)],
                             span[ (@class = ’mrow-enumerator’)]
                           )  ,’0123456789’,’’) = ’’)
                        and
                        not(descendant::*/descendant::*/descendant::*)
     or
     (@class = ’word-frac’))
    and
    preceding-sibling::*[1]
        / self::span[ @class = ’mn’]
  ]" >
   <xsl:text> and </xsl:text>
   <xsl:copy>
     <xsl:apply-templates select="*|@*|text()|comment()" />
   </xsl:copy>
 </xsl:template>
-_-_-