+
+<xsl:template mode="inline" match="m:apply[m:limit]">
+ <xsl:variable name="uri"><xsl:value-of select="m:limit/@definitionURL"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$uri != ''">
+ <a href="{$uri}">
+ <xsl:text>lim</xsl:text>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>lim</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ <SUB>
+ <xsl:apply-templates select="m:bvar/m:ci"/>
+ <xsl:call-template name="mksymbol-reals">
+ <xsl:with-param name="symbol" select="'leadsto'"/>
+ </xsl:call-template>
+ <xsl:apply-templates mode="inline" select="m:lowlimit"/>
+ </SUB>
+ <xsl:apply-templates mode="inline" select="*[4]"/>
+ </xsl:template>
+
+<!-- DIFFERENTIATION -->
+
+<xsl:template mode="inline" match="m:apply[m:diff]">
+ <xsl:variable name="uri"><xsl:value-of select="m:diff/@definitionURL"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$uri != ''">
+ <a href="{$uri}">
+ <SUP>d</SUP>
+ <xsl:text>/</xsl:text>
+ <SUB>
+ <xsl:text>d</xsl:text>
+ <xsl:value-of select="m:bvar/m:ci"/>
+ </SUB>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <SUP>d</SUP>
+ <xsl:text>/</xsl:text>
+ <SUB>
+ <xsl:text>d</xsl:text>
+ <xsl:value-of select="m:bvar/m:ci"/>
+ </SUB>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates mode="inline" select="*[3]"/>
+ </xsl:template>
+
+<!-- ABSOLUTE VALUE -->
+<xsl:template mode="inline" match="m:apply[m:abs]">
+ <xsl:variable name="uri">
+ <xsl:value-of select="m:abs/@definitionURL"/>
+ </xsl:variable>
+ <xsl:text>|</xsl:text>
+ <xsl:apply-templates mode="inline" select="*[2]"/>
+ <xsl:text>|</xsl:text>
+</xsl:template>
+
+<!-- FACTORIAL -->
+
+<xsl:template mode="inline" match="m:apply[m:fact]">
+ <xsl:variable name="uri">
+ <xsl:value-of select="m:abs/@definitionURL"/>
+ </xsl:variable>
+ <xsl:apply-templates mode="inline" select="*[2]"/>
+ <xsl:text>!</xsl:text>
+</xsl:template>
+
+<!-- SQUARE ROOT -->
+
+<xsl:template match="m:apply[m:root]">
+ <xsl:variable name="uri">
+ <xsl:value-of select="m:abs/@definitionURL"/>
+ </xsl:variable>
+ <xsl:text>(sqr</xsl:text>
+ <xsl:apply-templates mode="inline" select="*[2]"/>
+ <xsl:text>)</xsl:text>
+</xsl:template>
+
+<!-- POWER -->
+
+<xsl:template mode="inline" match="m:apply[m:power]">
+ <xsl:variable name="uri">
+ <xsl:value-of select="m:power/@definitionURL"/>
+ </xsl:variable>
+ <xsl:apply-templates mode="inline" select="*[2]"/>
+ <SUP>
+ <xsl:apply-templates mode="inline" select="*[3]"/>
+ </SUP>
+</xsl:template>
+
+<!-- MIN and MAX (binari: estendere) -->
+
+ <xsl:template mode="inline" match="m:apply[m:min|m:max]">
+ <xsl:variable name="uri"><xsl:value-of select="*[1]/@definitionURL"/></xsl:variable>
+ <xsl:variable name="symbol">
+ <xsl:choose>
+ <xsl:when test="m:min">
+ <xsl:value-of select="'min'"/>
+ </xsl:when>
+ <xsl:when test="m:max">
+ <xsl:value-of select="'max'"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$uri != ''">
+ <a href="{$uri}">
+ <xsl:value-of select="$symbol"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$symbol"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates mode="inline" select="*[2]"/>
+ <xsl:text>, </xsl:text>
+ <xsl:apply-templates mode="inline" select="*[3]"/>
+ <xsl:text>}</xsl:text>
+</xsl:template>
+
+<!-- **************************************************************** -->
+<!-- COUNTING MODE -->
+<!-- **************************************************************** -->
+
+<xsl:template match="m:apply[m:sum]">
+ <xsl:apply-templates mode="inline" select="."/>
+</xsl:template>
+