As a consequence (Rplus (Rplus R1 R1) R1) was rendered as 2.
</xsl:choose>
</xsl:template>
-<xsl:template match="APPLY[CONST[position() = 1 and @uri='cic:/Coq/Reals/Rdefinitions/Rplus.con'] and CONST[position() = 2 and @uri='cic:/Coq/Reals/Rdefinitions/R1.con'] and count(*) = 3]" mode="reals">
+<xsl:template match="APPLY[*[position() = 1 and name()='CONST' and @uri='cic:/Coq/Reals/Rdefinitions/Rplus.con'] and *[position() = 2 and name()='CONST' and @uri='cic:/Coq/Reals/Rdefinitions/R1.con'] and count(*) = 3]" mode="reals">
<xsl:param name="real_counter" select="0"/>
<xsl:variable name="result">
<xsl:apply-templates select="*[3]" mode="reals">