]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/content_to_html.xsl
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / style / content_to_html.xsl
index 2570adc7381dca131c45e76f09f70fcfe2ed808c..856fd69718a66103a38e43811ee1b836de23fc0c 100644 (file)
      <FONT color="red">CASE </FONT>
      <xsl:apply-templates mode="inline" select="*[position()=3]"/>
      <FONT color="red"> OF </FONT>
-<xsl:for-each select="piecewise/piece">
+     <xsl:for-each select="m:piecewise/m:piece">
 <!--<xsl:for-each select="*[position() mod 2 = 0 and position()>3]">-->
       <xsl:choose>
        <xsl:when test="not(position() = 1)">
         <xsl:text> | </xsl:text> 
        </xsl:when> 
       </xsl:choose>
-<xsl:apply-templates mode="inline" select="./*[2]"/>
+      <xsl:apply-templates mode="inline" select="./*[2]"/>
       <xsl:call-template name="mksymbol-1">
        <xsl:with-param name="symbol" select="'RightArrow'"/>
        <xsl:with-param name="color" select="'green'"/>
       </xsl:choose>
      </xsl:for-each>
     </xsl:when>
-    <!-- proof -->
+    <!-- proof and side_proof -->
     <xsl:when test="$name='proof' or $name='side_proof'">
        <xsl:apply-templates mode="inline" select="*[position()=2]"/>
        <FONT color="red">&#x00a0;proves&#x00a0;</FONT>
        <xsl:apply-templates mode="inline" select="*[position()=3]"/>
+       <xsl:if test="*[4]">
+        <FONT color="red">&#x00a0;which&#x00a0;is&#x00a0;equivalent&#x00a0;to&#x00a0;</FONT>
+        <xsl:apply-templates mode="inline" select="*[position()=4]"/>
+       </xsl:if>
     </xsl:when>
+    <!-- letin1 -->
     <xsl:when test="$name='letin1'">
      <xsl:text>letin1 (inline error)</xsl:text>
     </xsl:when>
           <xsl:with-param name="current_indent" select="$current_indent + 8"/>
          </xsl:apply-templates>
          <xsl:text> OF </xsl:text> 
-         <xsl:for-each select="piecewise/piece">
+         <xsl:for-each select="m:piecewise/m:piece">
     <!--   <xsl:for-each select="*[position() mod 2 = 0 and position()>3]">-->
          <br/>
          <xsl:call-template name="make_indent">
@@ -2136,8 +2141,6 @@ CONJECTURES:
           <xsl:with-param name="current_indent" select="$current_indent"/>
          </xsl:apply-templates>
         </xsl:when>
-       </xsl:choose>
-       <xsl:choose>
         <xsl:when test="name(.)='Def'">
          <xsl:choose>
           <xsl:when test="@name">
@@ -2152,10 +2155,10 @@ CONJECTURES:
           <xsl:with-param name="current_indent" select="$current_indent"/>
          </xsl:apply-templates>
         </xsl:when>
+        <xsl:otherwise>
+         <xsl:text> _ :? _ </xsl:text>
+        </xsl:otherwise>
        </xsl:choose>
-       <xsl:otherwise>
-        <xsl:text> _ :? _ </xsl:text>
-       </xsl:otherwise>
       </xsl:for-each>
       |- <xsl:value-of select="./@no"/> : 
       <xsl:apply-templates select="./Goal/*[1]">