media-type="text/mathml" /> -->
<!-- DA FARE:
-1)risolvere nella fase di pre-processing le uri relative, settando l'attributo
+1)risolvere nella fase di pre-processing le uri relative delle var, settando
+l'attributo
definitionURL dell'oggetto corrispondente (alcuni punteranno a nulla! -quelli
che non hanno il file di definizione corrispondente-); [le uri assolute hanno
la forma cic:/.../ in definitionURL e questo schema di uri verra' risolto da
Amaya o da chi di dovere in /really_very_local/helm/PARSER/example/.../]
-2)aggiungere nei file xml gli ID, affinche' nello stylesheet si setti
-l'attributo xref di ogni oggetto per puntare (tramite ID) al suo corrispondente
-della rappresentazione interna.
-->
<!--******************************************************************-->
<m:lambda helm:xref="{@id}">
<m:bvar>
<m:ci>
- <m:msqrt>
- <m:mi>
+ <!--<m:msqrt>
+ <m:mi>-->
<xsl:value-of select="target/@binder"/>
- </m:mi>
- </m:msqrt>
+ <!-- </m:mi>
+ </m:msqrt>-->
</m:ci>
<m:type>
<xsl:apply-templates select="source/*[1]" mode="noannot"/>
<!-- BASIC ELEMENTS -->
+<!-- HELM: cn could not contain MAthMl presentation -->
<xsl:template match = "m:cn">
<xsl:param name="IN_PREC" select="$NO_PREC"/>
<xsl:param name="PAREN" select="$PAR_NO"/>
<xsl:param name="PAR_NO_IGNORE" select="$YES"/>
+<!-- HELM: added -->
+<xsl:choose>
+ <xsl:when test="child::text()">
+<!-- HELM -->
<xsl:choose>
<xsl:when test=". < 0 and $IN_PREC > 0 and $PAREN=$PAR_NO and $PAR_NO_IGNORE=$NO">
<m:mfenced separators="">
<xsl:apply-templates select="." mode="cn"/>
</xsl:otherwise>
</xsl:choose>
+<!-- HELM: added -->
+</xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="*"/>
+ </xsl:otherwise>
+ </xsl:choose>
+<!-- HELM -->
</xsl:template>
<xsl:template match = "m:cn" mode="cn">
<m:mi fontweight="bold"> <xsl:apply-templates mode = "semantics"/> </m:mi>
</xsl:when>
<xsl:otherwise>
-<!-- <CSC> Originale:
+<!-- HELM: ci could not contain MathML presentation
<m:mi>
<xsl:call-template name="insert"/>
<xsl:apply-templates mode = "semantics"/>
</m:mi>
-</CSC> -->
-<!-- <CSC> Modificato: -->
+-->
<xsl:choose>
+ <!-- HELM: or the opposite test <xsl:when test="*[1]"> -->
<xsl:when test="child::text()">
<m:mi>
<xsl:call-template name="insert"/>
</m:mi>
</xsl:when>
<xsl:otherwise>
- <xsl:copy-of select="*"/>
+ <xsl:copy-of select="*"/>
</xsl:otherwise>
</xsl:choose>
-<!-- </CSC> -->
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+
<xsl:template match = "m:csymbol">
- <xsl:choose>
+ <xsl:choose>
<xsl:when test="*[1]">
- <xsl:copy-of select = "*"/>
+ <xsl:copy-of select = "*"/>
</xsl:when>
- <xsl:otherwise>
- <m:mo> <xsl:apply-templates mode = "semantics"/> </m:mo>
- </xsl:otherwise>
+ <xsl:otherwise>
+ <m:mo> <xsl:apply-templates mode = "semantics"/> </m:mo>
+ </xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:apply-templates>
<xsl:if test="*[3]">
<xsl:for-each select = "*[position()>2]">
-<!-- HELM: MODIFICA PROVVISORIA -->
+<!-- HELM: to distinguish between * and the application -->
<!-- <m:mo><xsl:call-template name="insert2"/>
<mchar name="InvisibleTimes"/> </m:mo> -->
<m:mo><xsl:call-template name="insert2"/>*</m:mo>
</xsl:if>
</xsl:template>
-<!-- HELM: COMMENTO : dove metto la uri della definizione di radice ???? -->
<xsl:template match = "m:apply[m:root[1]]">
<m:msqrt>
+ <xsl:call-template name="insert1"/>
<xsl:call-template name="insert_xref"/>
<xsl:if test="*[2]=m:degree">
<xsl:apply-templates select="*[3]" mode = "semantics"/>
<!-- Parameter affecting line-breaking -->
<!--***********************************************************************-->
-<xsl:variable name="framewidth" select="30"/>
+<xsl:variable name="framewidth" select="35"/>
<!--***********************************************************************-->
<!-- Gli oggetti sono stampati come mtext all'interno di una marca toplevel-->
<xsl:template match = "m:set">
<xsl:choose>
<xsl:when test="count(child::*) = 0">
- <m:mo>
- <m:mchar name="EmptySet"/>
- </m:mo>
+ <m:mi>
+ <m:mchar name="emptyset"/>
+ </m:mi>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="charlength">