<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:m="http://www.w3.org/1998/Math/MathML">
+<xsl:template name="mksymbol-init">
+ <xsl:param name="symbol" select="''"/>
+ <xsl:choose>
+ <xsl:when test="$UNICODEvsSYMBOL = 'symbol'">
+ <xsl:variable name="fontsymbol">
+ <xsl:choose>
+ <xsl:when test="$symbol = 'and'">
+ <xsl:value-of select="'Ù'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'or'">
+ <xsl:value-of select="'Ú'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'eq'">
+ <xsl:value-of select="'='"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'neq'">
+ <xsl:value-of select="'¹'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'leq'">
+ <xsl:value-of select="'£'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'lt'">
+ <xsl:value-of select="'<'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'geq'">
+ <xsl:value-of select="'³'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'gt'">
+ <xsl:value-of select="'>'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'plus'">
+ <xsl:value-of select="'+'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'times'">
+ <xsl:value-of select="'*'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'minus'">
+ <xsl:value-of select="'-'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'not'">
+ <xsl:value-of select="'Ø'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'exists'">
+ <xsl:value-of select="'$'"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>???</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <FONT FACE="symbol" color="'blue'">
+ <xsl:value-of select="$fontsymbol"/>
+ </FONT>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="unicodesymbol">
+ <xsl:choose>
+ <xsl:when test="$symbol = 'and'">
+ <xsl:value-of select="'∧'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'or'">
+ <xsl:value-of select="'∨'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'eq'">
+ <xsl:value-of select="'='"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'neq'">
+ <xsl:value-of select="'≠'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'leq'">
+ <xsl:value-of select="'≤'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'lt'">
+ <xsl:value-of select="'< '"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'geq'">
+ <xsl:value-of select="'≥'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'gt'">
+ <xsl:value-of select="'>'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'plus'">
+ <xsl:value-of select="'+'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'times'">
+ <xsl:value-of select="'∗'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'minus'">
+ <xsl:value-of select="'−'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'not'">
+ <xsl:value-of select="'¬'"/>
+ </xsl:when>
+ <xsl:when test="$symbol = 'exists'">
+ <xsl:value-of select="'∃'"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>???</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <FONT color="'blue'">
+ <xsl:value-of select="$unicodesymbol"/>
+ </FONT>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+
<!--***********************************************************************-->
<!-- INIT style for HTML -->
<!-- HELM Group: Asperti, Padovani, Sacerdoti, Schena -->
<xsl:variable name="uri">
<xsl:value-of select="*[1]/@definitionURL"/>
</xsl:variable>
- <xsl:variable name="symbol">
- <xsl:choose>
- <xsl:when test="m:and">
- <xsl:value-of select="'Ù'"/>
- </xsl:when>
- <xsl:when test="m:or">
- <xsl:value-of select="'Ú'"/>
- </xsl:when>
- <xsl:when test="m:eq">
- <xsl:value-of select="'='"/>
- </xsl:when>
- <xsl:when test="m:neq">
- <xsl:value-of select="'¹'"/>
- </xsl:when>
- <xsl:when test="m:leq">
- <xsl:value-of select="'£'"/>
- </xsl:when>
- <xsl:when test="m:lt">
- <xsl:value-of select="'<'"/>
- </xsl:when>
- <xsl:when test="m:geq">
- <xsl:value-of select="'³'"/>
- </xsl:when>
- <xsl:when test="m:gt">
- <xsl:value-of select="'>'"/>
- </xsl:when>
- <xsl:when test="m:plus">
- <xsl:value-of select="'+'"/>
- </xsl:when>
- <xsl:when test="m:times">
- <xsl:value-of select="'*'"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
<xsl:text>(</xsl:text>
<xsl:apply-templates mode="inline" select="*[2]"/>
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">
- <xsl:value-of select="$symbol"/>
- </FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="local-name(*[1])"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates mode="inline" select="*[3]"/>
<xsl:text>)</xsl:text>
<xsl:choose>
<xsl:when test="count(child::*)=2">
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">-</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'minus'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates mode="inline" select="*[2]"/>
</xsl:when>
<xsl:text>(</xsl:text>
<xsl:apply-templates mode="inline" select="*[2]"/>
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">-</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'minus'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates mode="inline" select="*[3]"/>
<xsl:text>)</xsl:text>
<xsl:value-of select="m:not/@definitionURL"/>
</xsl:variable>
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">Ø</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'not'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates mode="inline" select="*[2]"/>
</xsl:template>
<xsl:value-of select="m:exists/@definitionURL"/>
</xsl:variable>
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">$</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'exists'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates select="m:bvar/m:ci"/>
<xsl:text>:</xsl:text>
<xsl:variable name="charlength">
<xsl:apply-templates select="*[1]" mode="charcount"/>
</xsl:variable>
- <xsl:variable name="symbol">
- <xsl:choose>
- <xsl:when test="m:and">
- <xsl:value-of select="'Ù'"/>
- </xsl:when>
- <xsl:when test="m:or">
- <xsl:value-of select="'Ú'"/>
- </xsl:when>
- <xsl:when test="m:eq">
- <xsl:value-of select="'='"/>
- </xsl:when>
- <xsl:when test="m:neq">
- <xsl:value-of select="'¹'"/>
- </xsl:when>
- <xsl:when test="m:leq">
- <xsl:value-of select="'£'"/>
- </xsl:when>
- <xsl:when test="m:lt">
- <xsl:value-of select="'<'"/>
- </xsl:when>
- <xsl:when test="m:geq">
- <xsl:value-of select="'³'"/>
- </xsl:when>
- <xsl:when test="m:gt">
- <xsl:value-of select="'>'"/>
- </xsl:when>
- <xsl:when test="m:plus">
- <xsl:value-of select="'+'"/>
- </xsl:when>
- <xsl:when test="m:times">
- <xsl:value-of select="'*'"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
<xsl:choose>
<xsl:when test="$charlength > $framewidth">
<xsl:text>(</xsl:text>
<xsl:with-param name="current_indent" select="$current_indent + 2"/>
</xsl:call-template>
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">
- <xsl:value-of select="$symbol"/>
- </FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="local-name(*[1])"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates select="*[3]">
<xsl:with-param name="current_indent" select="$current_indent + 2"/>
<xsl:choose>
<xsl:when test="count(child::*)=2">
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">-</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'minus'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates select="*[2]">
<xsl:with-param name="current_indent" select="$current_indent + 1"/>
<xsl:with-param name="current_indent" select="$current_indent + 2"/>
</xsl:call-template>
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">-</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'minus'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates select="*[3]">
<xsl:with-param name="current_indent" select="$current_indent + 2"/>
<xsl:value-of select="m:not/@definitionURL"/>
</xsl:variable>
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">Ø</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'not'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates select="*[2]"/>
</xsl:template>
<xsl:choose>
<xsl:when test="$charlength > $framewidth">
<a href="{$uri}">
- <FONT FACE="symbol" SIZE="+0" mathcolor="blue">$</FONT>
+ <xsl:call-template name="mksymbol-init">
+ <xsl:with-param name="symbol" select="'exists'"/>
+ </xsl:call-template>
</a>
<xsl:apply-templates select="m:bvar/m:ci"/>
<xsl:text>:</xsl:text>