]> matita.cs.unibo.it Git - helm.git/commitdiff
When printing the body of a constant, the type is also printed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 23 Oct 2002 17:51:59 +0000 (17:51 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 23 Oct 2002 17:51:59 +0000 (17:51 +0000)
Requires the $ConstantTypeUrl variable set in rootcontent.xsl

helm/style/objcontent.xsl

index 9cf2ca7f9fb5b4437345c57cd300355039460b8b..064d0ca9a95b24676219708dd0ba560ce813e02e 100644 (file)
      <body>
       <xsl:apply-templates select="./*[1]"/>
      </body>
-     <type/>
+     <type>
+       <xsl:apply-templates select="document($ConstantTypeUrl)/*[1]/*[1]"/>
+     </type>
     </Definition>
 </xsl:template>
 
      <body>
        <xsl:apply-templates select="body/*[1]"/>
      </body>
+     <type>
+       <xsl:apply-templates select="document($ConstantTypeUrl)/*[1]/*[1]"/>
+     </type>
     </CurrentProof> 
 </xsl:template>