]> matita.cs.unibo.it Git - helm.git/commitdiff
added eq_ind
authorAndrea Asperti <andrea.asperti@unibo.it>
Mon, 5 Mar 2001 12:30:52 +0000 (12:30 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Mon, 5 Mar 2001 12:30:52 +0000 (12:30 +0000)
helm/style/content_to_html.xsl
helm/style/proofs.xsl
helm/style/theory_content.xsl

index 62a4936f0c071e83f6b74fa5da0061a2769a39c3..8da220b070e3d0e810c1cb1b8225adcfb40eaab3 100644 (file)
       </xsl:choose>
      </xsl:for-each>
     </xsl:when>
+    <!-- proof -->
     <xsl:when test="$name='proof'">
        <xsl:apply-templates mode="inline" select="*[position()=2]"/>
-       <FONT color="red">we proved</FONT>
+       <FONT color="red">&#x00a0;proves&#x00a0;</FONT>
        <xsl:apply-templates mode="inline" select="*[position()=3]"/>
     </xsl:when>
+    <!-- and_ind -->
+    <xsl:when test="$name='and_ind'">
+     <FONT color="red">From&#x00a0;</FONT>
+     <xsl:apply-templates select="*[2]"/>
+     <FONT color="red">&#x00a0;we get</FONT>
+     <m:mtext>(</m:mtext>
+     <xsl:apply-templates select="*[3]"/>
+     <m:mtext>)&#x00a0;</m:mtext>
+     <xsl:apply-templates mode="inline" select="*[4]"/>
+     <FONT color="red">&#x00a0;and&#x00a0;</FONT>
+     <m:mtext>(</m:mtext>
+     <xsl:apply-templates select="*[5]"/>
+     <m:mtext>)&#x00a0;</m:mtext>
+     <xsl:apply-templates mode="inline" select="*[6]"/>
+     <m:mtext>;</m:mtext>
+     <FONT color="red">&#x00a0;hence&#x00a0;</FONT>
+     <xsl:apply-templates mode="inline" select="*[7]"/>
+    </xsl:when>
    </xsl:choose>
 </xsl:template>
 
index 6f23e3254debc8cc2498f8d98d9e30b66dc3dfb1..99be5c79de41521c5a124a25c7b4438da247a574 100644 (file)
     </xsl:when>
     <!-- EQUALITY -->
     <xsl:when test="name()= 'APPLY' and CONST[
+ attribute::uri='cic:/Coq/Init/Logic/Equality/eq_ind.con' or
  attribute::uri='cic:/Coq/Init/Logic_Type/eqT_ind.con' or
  attribute::uri='cic:/Coq/Zarith/auxiliary/eqT_ind_r.con'] and count(child::*) = 7">
       <m:apply>
index b01fc6d1326610d54721a4746167e344c8635121..13751f85518e88c758a3e8005427395d0eb7810c 100644 (file)
 <!--******************************************************************-->
 
 <xsl:param name="getterURL" select="'http://localhost:8081/'"/>
+<xsl:param name="processorURL" select="'http://localhost:8080/helm/servlet/uwobo/'"/>
 
 <xsl:variable name="absPath"><xsl:value-of select="$getterURL"/>getciconly?uri=</xsl:variable>
 
+<xsl:variable name="header"><xsl:value-of select="$processorURL"/>/apply?key=C1&#x26;key=HC2&#x26;param.getterURL=<xsl:value-of select="$getterURL"/>&#x26;param.processorURL=<xsl:value-of select="$processorURL"/>&#x26;xmluri=<xsl:value-of select="$absPath"/></xsl:variable>
+
 <!-- THEORY -->
 
 <xsl:template match="Theory">
 
 <!-- THEORY ELEMENTS -->
 
+<!--
+<xsl:template match="DEFINITION">
+    <xsl:copy-of select="document(concat(string($header),string(@definitionURL)))"/>
+</xsl:template>
+-->
+
 <xsl:template match="DEFINITION">
 <xsl:param name="current_uri"/>
     <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),&quot;/&quot;,string(@uri)))"/>