]> matita.cs.unibo.it Git - helm.git/commitdiff
Written particular uses of induction and corrected some wrong paths
authorMatteo Selmi <matteo.selmi@mail.polimi.it>
Wed, 30 Oct 2002 14:52:17 +0000 (14:52 +0000)
committerMatteo Selmi <matteo.selmi@mail.polimi.it>
Wed, 30 Oct 2002 14:52:17 +0000 (14:52 +0000)
helm/style/basic.xsl

index bdb4ae3ebdde708c26656cb2ed61022f62a2e2a8..7d45d23dd0f7dbc7a947436a0da0b15db8710984 100644 (file)
 
 <!-- EXISTS -->
 
+
 <xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/ex.ind' or attribute::uri='cic:/Coq/Init/Logic_Type/exT.ind'] and (count(child::*) = 3)]" mode="pure">
     <m:apply helm:xref="{@id}">
      <m:exists definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
      <xsl:choose>
       <xsl:when test="name(*[3]) = 'LAMBDA'">
        <m:bvar>
-        <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[3]/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="*[3]/*[1]/@binder"/></xsl:with-param></xsl:call-template></m:ci>
        </m:bvar>
        <m:condition>
         <xsl:apply-templates select="*[2]" mode="pure"/>
     <m:exists definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
      <xsl:choose>
       <xsl:when test="name(*[3]) = 'LAMBDA'">
-       <xsl:variable name="bvarname" select="*[3]/target/@binder"/>
+       <xsl:variable name="bvarname" select="*[3]/*[1]/@binder"/>
        <m:bvar>
         <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="$bvarname"/></xsl:with-param></xsl:call-template></m:ci>
        </m:bvar>
        </m:condition>
        <xsl:choose>
         <xsl:when test="(name(*[4]) = 'LAMBDA') and 
-           ($bvarname = *[4]/target/@binder)">
+           ($bvarname = *[4]/*[1]/@binder)">
          <xsl:apply-templates select="LAMBDA[2]/target" mode="noannot"/>
         </xsl:when>
         <xsl:otherwise>
       <xsl:otherwise>
        <xsl:choose>
         <xsl:when test="name(*[4]) = 'LAMBDA'">
-         <xsl:variable name="bvarname" select="*[4]/target/@binder"/>
+         <xsl:variable name="bvarname" select="*[4]/*[1]/@binder"/>
          <m:bvar>
           <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="$bvarname"/></xsl:with-param></xsl:call-template></m:ci>
          </m:bvar>
     </m:apply>
 </xsl:template>
 
+
 <!-- EQUALITY and TYPE EQUALITY -->
 
 <xsl:template match="APPLY[MUTIND/@uri='cic:/Coq/Init/Logic/eq.ind']" mode="pure">