<!-- 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),"/",string(@uri))"/>
- <ENTITY uri="{$uri}"/>
+ <xsl:copy>
+ <xsl:attribute name="name"><xsl:value-of select="substring-before(@uri,".")"/></xsl:attribute>
+ <xsl:attribute name="uri"><xsl:value-of select="$uri"/></xsl:attribute>
+ </xsl:copy>
</xsl:template>
</xsl:stylesheet>