]> matita.cs.unibo.it Git - helm.git/commitdiff
Preliminary support for proof-tree enhanced: proof-trees are now shown
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 23 Sep 2003 12:06:54 +0000 (12:06 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 23 Sep 2003 12:06:54 +0000 (12:06 +0000)
as views over .con files.

helm/on-line/xslt/ls2html.xsl

index f0376baa5aa5a313157b0bfd8a906a6078fce3a0..0d551db35fe4cb04490eaf8677b5d057ce8a9e51 100644 (file)
  <xsl:variable name="ann" select="ann/@value"/>
  <xsl:variable name="types" select="types/@value"/>
  <xsl:variable name="body" select="body/@value"/>
+ <xsl:variable name="proof_tree" select="proof_tree/@value"/>
  <xsl:variable name="icon">
   <xsl:choose>
    <xsl:when test="$ann = 'YES'">text.gif</xsl:when>
      <xsl:with-param name="s" select="concat($name,'.body')"/>
     </xsl:call-template>
    </xsl:variable>
+   <xsl:variable name="quotedprooftreename">
+    <xsl:call-template name="jsquote">
+     <xsl:with-param name="s" select="concat($name,'.proof_tree')"/>
+    </xsl:call-template>
+   </xsl:variable>
+   <xsl:value-of select="$name"/>
+   <xsl:text> </xsl:text>
    <a href="" target="{$target}"
       onClick="this.href=makeURL('{$target}','{concat($quoteduri,$quotedname)}','{$ann}','{$types}')"
       onMouseOver="window.status='{concat($quoteduri,$quotedname)}'; return true"
-   ><xsl:value-of select="$name"/></a>
+   >
+    <xsl:choose>
+     <xsl:when test="not($body='NO')">Statement</xsl:when>
+     <xsl:otherwise>Definition</xsl:otherwise>
+    </xsl:choose>
+   </a>
    <xsl:if test="not($body='NO')">
     <xsl:text> </xsl:text>
     <a href="" target="{$target}"
        onClick="this.href=makeURL('{$target}','{concat($quoteduri,$quotedbodyname)}','{$ann}','{$types}')"
        onMouseOver="window.status='{concat($quoteduri,$quotedname)}'; return true"
-    >Body</a>
+    >Proof term</a>
+   </xsl:if>
+   <xsl:if test="not($proof_tree='NO')">
+    <xsl:text> </xsl:text>
+    <a href="" target="{$target}"
+       onClick="this.href=makeURL('{$target}','{concat($quoteduri,$quotedprooftreename)}','{$ann}','{$types}')"
+       onMouseOver="window.status='{concat($quoteduri,$quotedname)}'; return true"
+    >Proof tree</a>
    </xsl:if>
   </td>
  </tr>