doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="DTD/xhtml1-transitional.dtd" />
-<xsl:template match="SECTION">
-<xsl:param name="subsect" select="0"/>
- <xsl:choose>
- <xsl:when test="$subsect = 0">
+<xsl:template match="Theory">
<html>
<head></head>
<body>
- <h3>BEGIN SECTION</h3>
- <xsl:apply-templates select="*"><xsl:with-param name="subsect" select="1"/></xsl:apply-templates>
- <h3>END SECTION</h3>
+ <h2>THEORY<xsl:text> </xsl:text><xsl:value-of select="@name"/></h2>
+ <xsl:apply-templates select="*"/>
+ <h2>END THEORY</h2>
</body>
</html>
- </xsl:when>
- <xsl:otherwise>
+</xsl:template>
+
+<xsl:template match="SECTION">
<h3>BEGIN SECTION</h3>
- <xsl:apply-templates select="*"><xsl:with-param name="subsect" select="1"/></xsl:apply-templates>
+ <xsl:apply-templates select="*"/>
<h3>END SECTION</h3>
- </xsl:otherwise>
- </xsl:choose>
</xsl:template>
-<xsl:template match="ENTITY">
- <ENTITY uri="{@uri}"/>
+<xsl:template match="THEOREM|LEMMA|COROLLARY|FACT">
+ <h4><xsl:value-of select="name(.)"/><xsl:text> </xsl:text><a href="{$uri}"><xsl:value-of select="@name"/></a></h4>
+ <ENTITY uri="{@uri}" type="1"/>
+</xsl:template>
+
+<xsl:template match="AXIOM|DEFINITION|VARIABLE">
+ <h4><xsl:value-of select="name(.)"/><xsl:text> </xsl:text><a href="{$uri}"><xsl:value-of select="@name"/></a></h4>
+ <ENTITY uri="{@uri}" type="0"/>
</xsl:template>
</xsl:stylesheet>
+
+
+