]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/basic.xsl
Bug nat_double_ind solved.
[helm.git] / helm / style / basic.xsl
index ed6681af2132096f40526a822f8a358095381671..d2441932f3cff0d79f1c8297b48fb06f95985c90 100644 (file)
@@ -67,7 +67,7 @@
 </xsl:template>
 
 <!-- IFF -->
-<!--
+<!-- 
 <xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/Equivalence/iff.ind'] and (count(child::*) = 3)]" mode="pure">
     <m:apply helm:xref="{@id}">
     <m:iff definitionURL="{CONST/@uri}" helm:xref="{CONST/@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="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="*[3]/target/@binder"/></xsl:with-param></xsl:call-template></m:ci>
        </m:bvar>
+       <m:condition>
+        <xsl:apply-templates select="*[2]" mode="pure"/>
+       </m:condition>
        <xsl:apply-templates select="LAMBDA/target" mode="noannot"/>
       </xsl:when>
       <xsl:otherwise>
        <m:bvar>
         <m:ci>$x</m:ci>
        </m:bvar>
+       <m:condition>
+        <xsl:apply-templates select="*[2]" mode="pure"/>
+       </m:condition>
        <m:apply>
         <m:csymbol>app</m:csymbol>
         <xsl:apply-templates select="*[3]" mode="noannot"/>