]> matita.cs.unibo.it Git - helm.git/commitdiff
ht:OBJECT added
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 29 Jun 2001 11:14:38 +0000 (11:14 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 29 Jun 2001 11:14:38 +0000 (11:14 +0000)
helm/style/theory_content.xsl
helm/style/theory_pres.xsl

index 4eae86957e66b3c80d60252e036b182e83215375..d6ccafb4fa9f01123fe3a63e0354d4ede3951b81 100644 (file)
     </xsl:copy>
 </xsl:template>
 
+<xsl:template match="ht:OBJECT">
+<xsl:param name="current_uri" select="''"/>
+<xsl:param name="delim" select="''"/>
+<xsl:variable name="uri" select="concat(string($current_uri),$delim,string(@uri))"/>
+    <xsl:copy>
+     <xsl:copy-of select="@mode"/>
+     <xsl:attribute name="uri"><xsl:value-of select="$uri"/></xsl:attribute>
+    </xsl:copy>
+</xsl:template>
+
 <!-- Root and XHTML -->
 
 <xsl:template match = "/|*">
index 1595ee73acbab17be41c02d655738b7fa589b204..209e000d03a070cfd91bbc56c6bd9855c7a0e1b2 100644 (file)
      <h4>END MUTUAL DEFINITIONS</h4>
 </xsl:template>
 
+<xsl:template match="ht:OBJECT">
+ <xsl:variable name="delimiter">
+  <xsl:if test="@mode != 'lynkonly'">
+   <xsl:text>:</xsl:text>
+  </xsl:if>
+ </xsl:variable>
+    <table>
+     <tr>
+      <td colspan="2">
+       <b>Object<xsl:text>&#x00a0;</xsl:text><a href="{@uri}"><xsl:value-of select="@uri"/></a><xsl:value-of select="$delimiter"/></b>
+      </td>
+     </tr>
+     <xsl:if test="@mode != 'linkonly'">
+      <tr>
+       <td>&#x00a0;&#x00a0;&#x00a0;</td>
+       <td><ENTITY uri="{@uri}" type="{@mode}"/></td>
+      </tr>
+     </xsl:if>
+    </table>
+</xsl:template>
+
 <xsl:template match="ht:THEOREM">
     <table>
      <tr>