chriswarbo-net: a540ff9a4c70f26c7c8aea673eebf69bf64094b3

     1: <xsl:stylesheet
     2:   version="1.0"
     3:   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     4:   xmlns:m="http://www.w3.org/1998/Math/MathML"
     5:   exclude-result-prefixes="m"
     6:   >
     7:   <xsl:output method="xml" />
     8: 
     9:   <!-- Recurse through elements -->
    10: 
    11:   <xsl:template match="/">
    12:     <xsl:apply-templates />
    13:   </xsl:template>
    14: 
    15:   <xsl:template match="*">
    16:     <xsl:copy>
    17:       <xsl:copy-of select="@*"/>
    18:       <xsl:apply-templates />
    19:     </xsl:copy>
    20:   </xsl:template>
    21: 
    22:   <!-- Present applications of unary_minus as overbar -->
    23:   <xsl:template
    24:       match="m:apply[*[1][self::m:minus] and count(*)=2]
    25:              |m:apply[*[1][self::m:csymbol='unary_minus']]">
    26:     <m:mover>
    27:       <xsl:apply-templates select="*[2]"/>
    28:       <m:mo>¯<!-- overline --></m:mo>
    29:     </m:mover>
    30:   </xsl:template>
    31: 
    32: </xsl:stylesheet>

Generated by git2html.