3 <!--***********************************************************************-->
4 <!-- XSLT version 0.1 of annotated MathML content to MathML presentation: -->
5 <!-- First draft: March 29 2000, Claudio Sacerdoti Coen, Irene Schena -->
6 <!--***********************************************************************-->
8 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9 xmlns:m="http://www.w3.org/1998/Math/MathML"
10 xmlns:helm="http://www.cs.unibo.it/helm">
12 <xsl:import href="mmlextension.xsl"/>
16 <xsl:template match="annotation">
18 <xsl:when test=". = /">
19 <m:math><m:mrow helm:xref="{@helm:xref}"><xsl:apply-templates/></m:mrow></m:math>
22 <m:mrow helm:xref="{@helm:xref}"><xsl:apply-templates/></m:mrow>
27 <xsl:template match="text()">
28 <xsl:variable name="text" select="normalize-space(.)"/>
29 <xsl:if test="$text != ''">
30 <m:mtext><xsl:value-of select="$text"/></m:mtext>