<!-- Added the namespace prefix to all the output elements -->
<!-- Added the namespace prefix to all the xref attributes -->
<!-- Changed the mml prefix into m -->
-<!-- Added m:xref to every mo element -->
+<!-- Added xref to every mo element -->
<!-- Changed mchar into the corresponding entity -->
<!-- First draft: April 27 2001, Irene Schena -->
<!-- ====================================================== -->
<xsl:when test="self::m:semantics">
<xsl:copy>
<xsl:copy-of select="@*"/>
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
<xsl:copy-of select="*[1]"/>
and $PAR_NO_IGNORE=$NO">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<m:mrow>
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
<xsl:copy-of select="*"/>
<xsl:template match = "m:cn" mode="cnid">
<xsl:choose>
<xsl:when test="@base and (not(@type) or @type='integer' or @type='real')">
- <m:msub m:xref="{@id}">
+ <m:msub xref="{@id}">
<m:mn> <xsl:apply-templates mode = "semantics"/> </m:mn>
<m:mn> <xsl:value-of select="@base"/> </m:mn>
</m:msub>
</xsl:when>
<xsl:when test="@type='complex' and not(@base) and child::m:sep[1]">
- <m:mfenced separators="" m:xref="{@id}">
+ <m:mfenced separators="" xref="{@id}">
<m:mn> <xsl:apply-templates select="text()[1]" mode = "semantics"/> </m:mn>
<xsl:if test="text()[2] < 0">
<m:mo>-</m:mo>
</m:mfenced>
</xsl:when>
<xsl:when test="@type='complex' and @base and child::m:sep[1]">
- <m:msub m:xref="{@id}">
+ <m:msub xref="{@id}">
<m:mfenced separators="">
<m:mn> <xsl:apply-templates select="text()[1]"/> </m:mn>
<xsl:if test="text()[2] < 0">
</m:msub>
</xsl:when>
<xsl:when test="@type='rational' and not(@base) and child::m:sep[1]">
- <m:mfrac m:xref="{@id}">
+ <m:mfrac xref="{@id}">
<m:mn> <xsl:apply-templates select="text()[1]"/> </m:mn>
<m:mn> <xsl:apply-templates select="text()[2]"/> </m:mn>
</m:mfrac>
</xsl:when>
<xsl:when test="@type='rational' and @base and child::m:sep[1]">
- <m:msub m:xref="{@id}">
+ <m:msub xref="{@id}">
<m:mfenced>
<m:mfrac>
<m:mn> <xsl:apply-templates select="text()[1]"/> </m:mn>
</m:msub>
</xsl:when>
<xsl:when test="@type='polar' and not(@base) and child::m:sep[1]">
- <m:mrow m:xref="{@id}">
+ <m:mrow xref="{@id}">
<m:mo>Polar</m:mo>
<m:mo>⁢</m:mo>
<m:mfenced separators=",">
</m:mrow>
</xsl:when>
<xsl:when test="@type='polar' and @base and child::m:sep[1]">
- <m:msub m:xref="{@id}">
+ <m:msub xref="{@id}">
<m:mrow>
<m:mo>Polar</m:mo>
<m:mo>⁢</m:mo>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="child::text() and not(*[1])">
- <m:mn m:xref="{@id}"> <xsl:apply-templates mode = "semantics"/> </m:mn>
+ <m:mn xref="{@id}"> <xsl:apply-templates mode = "semantics"/> </m:mn>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="id" select="@id"/>
<xsl:when test="not(*[2])">
<xsl:for-each select="*[1]">
<xsl:copy>
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="$id"/>
</xsl:attribute>
<xsl:copy-of select="@*|*"/>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
- <m:mrow m:xref="{$id}">
+ <m:mrow xref="{$id}">
<xsl:copy-of select="*|text()"/>
</m:mrow>
</xsl:otherwise>
<xsl:when test="@type='vector' or @type=matrix or @type=set">
<m:mi fontweight="bold">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:when test="child::text() and not(child::*[1])">
<m:mi>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:when test="child::text() and *[1] and not(*[1]=m:sep)">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[2]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:variable name="id" select="@id"/>
<xsl:for-each select="*[1]">
<xsl:copy>
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="$id"/>
</xsl:attribute>
<xsl:copy-of select="@*|*"/>
<xsl:template match = "m:csymbol">
<!-- HELM: added -->
<m:mrow>
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
<!-- HELM -->
<xsl:template match = "m:apply[m:*[1][self::m:fn]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:fn/@id"/>
</xsl:attribute>
</xsl:if>⁡</m:mo>
<xsl:template match = "m:interval">
<m:mfenced separators=",">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:*[1][self::m:apply[m:inverse[1]]]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
*[2]=m:arccos or *[2]=m:arctan">
<m:mo>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:msup>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <m:mrow m:xref="{@id}">
+ <m:mrow xref="{@id}">
<xsl:apply-templates select="*" mode = "semantics"/>
</m:mrow>
</xsl:when>
<xsl:template match = "m:lambda">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[*[1][self::m:apply[m:compose[1]]]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[*[1][self::m:compose]]">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:compose/@id"/>
</xsl:attribute>
</xsl:if>∘</m:mo>
<xsl:template match = "m:ident">
<xsl:choose>
<xsl:when test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <m:mo m:xref="{@id}">id</m:mo>
+ <m:mo xref="{@id}">id</m:mo>
</xsl:when>
<xsl:otherwise>
<m:mo>id</m:mo>
<xsl:template match = "m:apply[m:quotient[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mfrac>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:quotient/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[*[1][self::m:exp]]">
<m:msup>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:exp/@id"/>
</xsl:attribute>
</xsl:if>e</m:mo>
<xsl:template match = "m:apply[m:factorial[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:factorial/@id"/>
</xsl:attribute>
</xsl:if>!</m:mo>
<xsl:template match = "m:apply[m:max[1] | m:min[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:max/@id"/>
</xsl:attribute>
</xsl:if>max</m:mo>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:min/@id"/>
</xsl:attribute>
</xsl:if>min</m:mo>
$PARAM=$PAR_SAME">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:minus/@id"/>
</xsl:attribute>
</xsl:if>-</m:mo>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:minus/@id"/>
</xsl:attribute>
</xsl:if>-</m:mo>
$PARAM=$PAR_SAME">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:plus/@id"/>
</xsl:attribute>
</xsl:if>+</m:mo>
<xsl:otherwise>
<m:msup>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
$PARAM=$PAR_SAME">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="m:rem">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:rem/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="m:divide">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:divide/@id"/>
</xsl:attribute>
</xsl:if>
$PARAM=$PAR_SAME">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:times/@id"/>
</xsl:attribute>
</xsl:if>*</m:mo>
<xsl:template match = "m:apply[m:root[1]]">
<m:msqrt>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:gcd[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:gcd/@id"/>
</xsl:attribute>
</xsl:if>gcd</m:mo>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:gcd/@id"/>
</xsl:attribute>
</xsl:if>gcd</m:mo>
<xsl:when test="$IN_PREC > $AND_PREC">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:and/@id"/>
</xsl:attribute>
</xsl:if>∧</m:mo>
<xsl:when test="$IN_PREC > $OR_PREC">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:or/@id"/>
</xsl:attribute>
</xsl:if>∨</m:mo>
<xsl:when test="$IN_PREC > $XOR_PREC">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:xor/@id"/>
</xsl:attribute>
</xsl:if>⊻</m:mo>
<xsl:template match = "m:apply[m:not[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:not/@id"/>
</xsl:attribute>
</xsl:if>¬</m:mo>
<xsl:template match = "m:apply[m:forall[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:forall/@id"/>
</xsl:attribute>
</xsl:if>for all</m:mo>
<xsl:template match = "m:apply[m:exists[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:exists/@id"/>
</xsl:attribute>
</xsl:if>∃</m:mo>
<xsl:if test="not(parent::m:apply[m:power[1]])">
<m:mfenced open="|" close="|" separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:msup>
<m:mfenced open="|" close="|" separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:conjugate[1]]">
<m:mover>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:conjugate/@id"/>
</xsl:attribute>
</xsl:if>̲</m:mo>
<xsl:template match = "m:apply[m:arg[1] | m:real[1] | m:imaginary[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="m:arg">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:arg/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="m:real">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:real/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="m:imaginary">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:imaginary/@id"/>
</xsl:attribute>
</xsl:if>
| m:geq | m:leq | m:equivalent]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:neq">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:neq/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:approx">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:approx/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:tendsto">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:tendsto/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:implies">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:implies/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:in">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:in/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:notin">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:notin/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:notsubset">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:notsubset/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:notprsubset">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:notprsubset/@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:tendsto/@id"/>
</xsl:attribute>
</xsl:if>-</m:mo>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:tendsto/@id"/>
</xsl:attribute>
</xsl:if>+</m:mo>
<xsl:if test="../*[self::m:subset][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:subset/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="../*[self::m:prsubset][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:prsubset/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="../*[self::m:eq][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:eq/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="../*[self::m:gt][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:gt/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="../*[self::m:lt][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:lt/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="../*[self::m:geq][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:geq/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="../*[self::m:leq][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:leq/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="../*[self::m:equivalent][1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:equivalent/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[*[1][self::m:ln]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:ln/@id"/>
</xsl:attribute>
</xsl:if>ln</m:mo>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:ln/@id"/>
</xsl:attribute>
</xsl:if>ln</m:mo>
<xsl:template match = "m:apply[m:log[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:log/@id"/>
</xsl:attribute>
</xsl:if>log</m:mo>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:log/@id"/>
</xsl:attribute>
</xsl:if>log</m:mo>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:log/@id"/>
</xsl:attribute>
</xsl:if>log</m:mo>
<xsl:template match = "m:apply[m:diff[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mfrac>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:diff/@id"/>
</xsl:attribute>
</xsl:if>
<m:mfrac>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:diff/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:partialdiff[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mfrac>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:partialdiff/@id"/>
</xsl:attribute>
</xsl:if>
<m:mfrac>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:partialdiff/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:divergence[1] | m:grad[1] | m:curl[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:divergence">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:divergence/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:grad">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:grad/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:curl">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:curl/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:laplacian[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:msup>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:laplacian/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:set | m:list">
<m:mfenced open="{{" close="}}" separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
and $PARAM=$PAR_SAME">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:union/@id"/>
</xsl:attribute>
</xsl:if>⋃</m:mo>
<xsl:when test="$IN_PREC > $INTERSECT_PREC">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="../m:intersect/@id"/>
</xsl:attribute>
</xsl:if>⋂</m:mo>
and $PARAM=$PAR_SAME">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:otherwise>
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:setdiff/@id"/>
</xsl:attribute>
</xsl:if>\</m:mo>
<xsl:template match = "m:apply[m:card[1]]">
<m:mfenced open="|" close="|" separators=",">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:sum[1] | m:product[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:sum">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:sum/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:product">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:product/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:sum">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:sum/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="*[1]=m:product">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:product/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:limit[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:lim/@id"/>
</xsl:attribute>
</xsl:if>lim</m:mo>
self::m:arctan]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "*" mode="trigonometry">
<m:mo>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:mean[1]]">
<m:mfenced open="<" close=">" separators=",">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:sdev[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:sdev/@id"/>
</xsl:attribute>
</xsl:if>σ</m:mo>
<xsl:template match = "m:apply[m:variance[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:variance/@id"/>
</xsl:attribute>
</xsl:if>σ</m:mo>
<xsl:template match = "m:apply[m:median[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:median/@id"/>
</xsl:attribute>
</xsl:if>median</m:mo>
<xsl:template match = "m:apply[m:mode[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:mode/@id"/>
</xsl:attribute>
</xsl:if>mode</m:mo>
<xsl:template match = "m:apply[m:moment[1]]">
<m:mfenced open="<" close=">" separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match="m:vector">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:matrix">
<m:mfenced separators="">
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:matrixrow">
<m:mtr>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:template match = "m:apply[m:determinant[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:determinant/@id"/>
</xsl:attribute>
</xsl:if>det</m:mo>
<xsl:template match = "m:apply[m:transpose[1]]">
<m:msup>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<m:mo>
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:transpose/@id"/>
</xsl:attribute>
</xsl:if>T</m:mo>
m:scalarproduct[1] | m:outerproduct[1]]">
<m:mrow>
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="m:vectorproduct[1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="m:vectorproduct/@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="m:scalarproduct[1] | m:outerproduct[1]">
<!-- HELM: added -->
<xsl:if test="($SEM_SW=$SEM_XREF or $SEM_SW=$SEM_XREF_EXT) and @id">
- <xsl:attribute name="m:xref">
+ <xsl:attribute name="xref">
<xsl:value-of select="*[1]/@id"/>
</xsl:attribute>
</xsl:if>