<?xml version="1.0"?>
+<!-- Copyright (C) 2000, HELM Team -->
+<!-- -->
+<!-- This file is part of HELM, an Hypertextual, Electronic -->
+<!-- Library of Mathematics, developed at the Computer Science -->
+<!-- Department, University of Bologna, Italy. -->
+<!-- -->
+<!-- HELM is free software; you can redistribute it and/or -->
+<!-- modify it under the terms of the GNU General Public License -->
+<!-- as published by the Free Software Foundation; either version 2 -->
+<!-- of the License, or (at your option) any later version. -->
+<!-- -->
+<!-- HELM is distributed in the hope that it will be useful, -->
+<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
+<!-- GNU General Public License for more details. -->
+<!-- -->
+<!-- You should have received a copy of the GNU General Public License -->
+<!-- along with HELM; if not, write to the Free Software -->
+<!-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, -->
+<!-- MA 02111-1307, USA. -->
+<!-- -->
+<!-- For details, see the HELM World-Wide-Web page, -->
+<!-- http://cs.unibo.it/helm/. -->
+
<!--******************************************************************-->
<!-- Reals -->
<!-- First draft: April 3 2000 -->
-<!-- Unary Operations -->
+<!-- Unary Operations and power -->
<xsl:template match="APPLY[CONST[
attribute::uri='cic:/Coq/Reals/Rdefinitions/Ropp.con' or
<xsl:value-of select="'factorial'"/>
</xsl:when>
<xsl:when test="CONST/@uri='cic:/Coq/Reals/Rbase/Rsqr.con'">
- <xsl:value-of select="'root'"/>
+ <xsl:value-of select="'power'"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
</xsl:attribute>
</xsl:element>
<xsl:apply-templates select="*[2]" mode="noannot"/>
+ <xsl:if test="string($elem)='power'">
+ <m:cn><xsl:value-of select="*[2]/@value"/></m:cn>
+ </xsl:if>
</m:apply>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="definitionURL">
<xsl:value-of select="CONST/@uri"/>
</xsl:attribute>
+ <xsl:attribute name="helm:xref">
+ <xsl:value-of select="CONST/@id"/>
+ </xsl:attribute>
</m:minus>
- <xsl:attribute name="helm:xref">
- <xsl:value-of select="CONST/@id"/>
- </xsl:attribute>
<m:cn>1</m:cn>
</m:apply>
</m:apply>
</xsl:attribute>
</m:limit>
<m:bvar>
- <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="LAMBDA/target/@binder"/></xsl:with-param></xsl:call-template></m:ci>
+ <m:ci>
+ <xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="LAMBDA/target/@binder"/></xsl:with-param></xsl:call-template>
+ </m:ci>
</m:bvar>
<m:lowlimit>
<xsl:apply-templates select="*[5]" mode="noannot"/>
</xsl:when>
<xsl:otherwise>
<m:apply helm:xref="{@id}">
- <m:limit/>
+ <m:limit>
+ <xsl:attribute name="definitionURL">
+ <xsl:value-of select="CONST/@uri"/>
+ </xsl:attribute>
+ <xsl:attribute name="helm:xref">
+ <xsl:value-of select="CONST/@id"/>
+ </xsl:attribute>
+ </m:limit>
<m:bvar>
<m:ci>$x</m:ci>
</m:bvar>
<xsl:choose>
<xsl:when test="name(*[2]) = 'LAMBDA'">
<m:apply helm:xref="{@id}">
- <m:diff >
+ <m:diff>
<xsl:attribute name="definitionURL">
<xsl:value-of select="CONST/@uri"/>
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
+
+