]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/theory_content.xsl
Modified Files:
[helm.git] / helm / style / theory_content.xsl
index 6ae6ee7c90d4675f6dc3237ef1b87d3aba551f72..4a7b4adc3f8fb9bf6778baa9424dbdace3e681ab 100644 (file)
@@ -35,9 +35,9 @@
 <!-- THEORY -->
 
 <xsl:template match="Theory">
-    <SECTION>
+    <Theory name="{@uri}" uri="{@uri}">
      <xsl:apply-templates><xsl:with-param name="current_uri" select="string(@uri)"/></xsl:apply-templates>
-    </SECTION>
+    </Theory>
 </xsl:template>
 
 <!-- SUBTHEORY -->
 
 <!-- THEORY ELEMENTS -->
 
-<xsl:template match="DEFINITION|AXIOM|THEOREM|VARIABLE">
+<xsl:template match="THEOREM|LEMMA|COROLLARY|AXIOM|FACT|DEFINITION|
+                           VARIABLE">
 <xsl:param name="current_uri"/>
 <xsl:variable name="uri" select="concat(string($current_uri),&quot;/&quot;,string(@uri))"/>
-    <ENTITY uri="{$uri}"/>
+    <xsl:copy>
+     <xsl:attribute name="name"><xsl:value-of select="substring-before(@uri,&quot;.&quot;)"/></xsl:attribute>
+     <xsl:attribute name="uri"><xsl:value-of select="$uri"/></xsl:attribute>
+    </xsl:copy>
 </xsl:template>
 
 </xsl:stylesheet>